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

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

Issue 574573002: Add SourceFileEdit.time field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak 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
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 43fc138473a4f629891144af34f466a087381cc7..b473b2534e14550c46d68f4d3ae1531413ee390a 100644
--- a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
+++ b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
@@ -190,6 +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 {
+ 'long': 'int',
'object': 'Map',
};
@@ -559,8 +560,8 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
case 'SourceChange':
docComment(
[new dom.Text('Adds [edit] to the [FileEdit] for the given [file].')]);
- writeln('void addEdit(String file, SourceEdit edit) =>');
- writeln(' _addEditToSourceChange(this, file, edit);');
+ writeln('void addEdit(String file, int fileStamp, SourceEdit edit) =>');
+ writeln(' _addEditToSourceChange(this, file, fileStamp, edit);');
writeln();
docComment([new dom.Text('Adds the given [FileEdit].')]);
writeln('void addFileEdit(SourceFileEdit edit) {');
@@ -1121,6 +1122,7 @@ class CodegenProtocolVisitor extends HierarchicalApiVisitor with CodeGenerator {
case 'bool':
return new FromJsonFunction('jsonDecoder._decodeBool');
case 'int':
+ case 'long':
return new FromJsonFunction('jsonDecoder._decodeInt');
case 'object':
return new FromJsonIdentity();
« no previous file with comments | « pkg/analysis_server/test/services/correction/change_test.dart ('k') | pkg/analysis_server/tool/spec/codegen_java.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698