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

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

Issue 2879273002: Make server use the common protocol classes (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/analysis_server/tool/spec/codegen_matchers.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_matchers.dart b/pkg/analysis_server/tool/spec/codegen_matchers.dart
index e54c7e215ea6ecb3e6780fee4c86321e221cc79f..bc52c0fa7a360398e3d35ec1af4525f729171473 100644
--- a/pkg/analysis_server/tool/spec/codegen_matchers.dart
+++ b/pkg/analysis_server/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);
}
}
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_inttest_methods.dart ('k') | pkg/analysis_server/tool/spec/from_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698