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

Unified Diff: lib/json/json.dart

Issue 9387007: Make lists parsed by JSON untyped. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/json/json.dart
===================================================================
--- lib/json/json.dart (revision 4209)
+++ lib/json/json.dart (working copy)
@@ -396,7 +396,7 @@
}
_parseObject() {
- Map<String, Object> object = new Map<String, Object>();
+ final object = {};
_parseSequence(JsonToken.RBRACE, (JsonToken token) {
_assertTokenKind(token, JsonToken.STRING);
@@ -415,7 +415,7 @@
}
_parseList() {
- List<Object> list = new List<Object>();
+ final list = [];
_parseSequence(JsonToken.RBRACKET, (JsonToken token) {
final value = _parseValue(token);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698