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

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

Issue 574573002: Add SourceFileEdit.time field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use modification stamp of sources 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_java_types.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_java_types.dart b/pkg/analysis_server/tool/spec/codegen_java_types.dart
index 99363e761d1f43a21c254eda655cbd3c3a5f699f..c0a1f32d90cdb58a3e844377b8e1f933059de0ff 100644
--- a/pkg/analysis_server/tool/spec/codegen_java_types.dart
+++ b/pkg/analysis_server/tool/spec/codegen_java_types.dart
@@ -597,6 +597,8 @@ class CodegenJavaType extends CodegenJavaVisitor {
return 'getAsBoolean';
} else if (name == 'int' || name == 'Integer') {
return 'getAsInt';
+ } else if (name == 'long' || name == 'Long') {
+ return 'getAsLong';
Brian Wilkerson 2014/09/16 13:51:32 I didn't realize the JSON made a distinction. Shou
scheglov 2014/09/16 17:18:35 Timestamp is too long to fit into Java int. OTOH,
} else if (name.startsWith('List')) {
return 'getAsJsonArray';
} else {

Powered by Google App Engine
This is Rietveld 408576698