Index: pkg/front_end/tool/_fasta/generate_messages.dart |
diff --git a/pkg/front_end/tool/_fasta/generate_messages.dart b/pkg/front_end/tool/_fasta/generate_messages.dart |
index 7497befe8738088ff6c396a73ad7f72818e91058..6337eb75028095461903713e880b73516857cdec 100644 |
--- a/pkg/front_end/tool/_fasta/generate_messages.dart |
+++ b/pkg/front_end/tool/_fasta/generate_messages.dart |
@@ -29,14 +29,16 @@ main(List<String> arguments) async { |
part of fasta.codes; |
"""); |
- yaml.forEach((String name, description) { |
+ List<String> keys = yaml.keys.toList()..sort(); |
+ for (String name in keys) { |
+ var description = yaml[name]; |
while (description is String) { |
description = yaml[description]; |
} |
Map map = description; |
sb.writeln(compileTemplate(name, map['template'], map['tip'], |
map['analyzerCode'], map['dart2jsCode'])); |
- }); |
+ } |
String dartfmtedText = new DartFormatter().format("$sb"); |