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

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

Issue 530033002: Use a more precise type for "object" in analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/analysis_server/test/edit/refactoring_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
index 2136f0df63de0c2a88ff3c9d9fa08c577e710e7e..6eb74ed17b54937896d809c42dcb8b67c4a79bed 100644
--- a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
+++ b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
@@ -190,7 +190,7 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
* Type references in the spec that are named something else in Dart.
*/
static const Map<String, String> _typeRenames = const {
- 'object': 'Object',
+ 'object': 'Map',
};
/**
@@ -291,7 +291,7 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
toHtmlVisitor.showType(null, impliedType.type);
}
}));
- writeln('class $className {');
+ writeln('class $className implements HasToJson {');
indent(() {
if (emitSpecialStaticMembers(className)) {
writeln();
« no previous file with comments | « pkg/analysis_server/test/edit/refactoring_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698