-
-
Save gaybro8777/08206e7cb1edfd9b5f5646c90573e423 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:kernel/kernel.dart'; | |
main(List<String> args) { | |
var program = loadProgramFromBinary(args[0]); | |
program.libraries.sort((x,y) => x.importUri.toString().compareTo(y.importUri.toString())); | |
for (var lib in program.libraries) { | |
lib.classes.sort((x,y) => x.name.compareTo(y.name)); | |
} | |
writeProgramToBinary(program, args[0]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment