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

Unified Diff: samples/third_party/dromaeo/common/JSON.dart

Issue 12086028: Fix up dromaeo after lib v2 merge and add Dromaeo smoketest to prevent future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: samples/third_party/dromaeo/common/JSON.dart
diff --git a/samples/third_party/dromaeo/common/JSON.dart b/samples/third_party/dromaeo/common/JSON.dart
index dc9fd68ce7daf40c5c3f9ded787ebbba26e37114..4b032ae48e68e80a6da7ae36d18ee32105052cd4 100644
--- a/samples/third_party/dromaeo/common/JSON.dart
+++ b/samples/third_party/dromaeo/common/JSON.dart
@@ -62,7 +62,7 @@ class JsonToken {
factory JsonToken.string(String s) {
return new JsonToken._internal(STRING, s, 0);
}
- factory JsonToken.number(num n) {
+ factory JsonToken.numberItem(num n) {
return new JsonToken._internal(NUMBER, '', n);
}
factory JsonToken.atom(int kind) {
@@ -253,7 +253,7 @@ class JsonTokenizer {
}
final String body = _s.substring(startPos, _pos);
- return new JsonToken.number(
+ return new JsonToken.numberItem(
isInteger ? int.parse(body) : double.parse(body));
case cur == LBRACE:

Powered by Google App Engine
This is Rietveld 408576698