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

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

Issue 449213002: Rework "analysis.updateContent" analysis server request. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 3f6d9edf34c3dc2f9f09832930da74314121d4a9..2db268d74869f7fd5ce420eca1929c3647be86a5 100644
--- a/pkg/analysis_server/tool/spec/codegen_matchers.dart
+++ b/pkg/analysis_server/tool/spec/codegen_matchers.dart
@@ -170,7 +170,11 @@ class CodegenMatchersVisitor extends HierarchicalApiVisitor with CodeGenerator {
writeln(',');
}
write('${JSON.encode(field.name)}: ');
- visitTypeDecl(field.type);
+ if (field.value != null) {
+ write('equals(${JSON.encode(field.value)})');
+ } else {
+ visitTypeDecl(field.type);
+ }
commaNeeded = true;
}
writeln();

Powered by Google App Engine
This is Rietveld 408576698