Index: pkg/analyzer_plugin/tool/spec/codegen_matchers.dart |
diff --git a/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart b/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart |
index e54c7e215ea6ecb3e6780fee4c86321e221cc79f..bc52c0fa7a360398e3d35ec1af4525f729171473 100644 |
--- a/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart |
+++ b/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart |
@@ -106,7 +106,10 @@ class CodegenMatchersVisitor extends HierarchicalApiVisitor with CodeGenerator { |
writeln(); |
writeln("import 'integration_tests.dart';"); |
writeln(); |
- for (ImpliedType impliedType in computeImpliedTypes(api).values) { |
+ List<ImpliedType> impliedTypes = computeImpliedTypes(api).values.toList(); |
+ impliedTypes.sort((ImpliedType first, ImpliedType second) => |
+ first.camelName.compareTo(second.camelName)); |
+ for (ImpliedType impliedType in impliedTypes) { |
makeMatcher(impliedType); |
} |
} |