Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: pkg/analyzer_plugin/tool/spec/codegen_matchers.dart

Issue 2876023003: Allow the common spec types to be in a separate document (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698