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

Issue 10254029: Fix errors in the JSON parser. (Closed)

Created:
8 years, 8 months ago by Anders Johnsen
Modified:
8 years, 8 months ago
Reviewers:
Anton Muhin
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix errors in the JSON parser. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=7122

Patch Set 1 #

Patch Set 2 : Further optimize length. #

Total comments: 14

Patch Set 3 : Changes based on feedback. #

Total comments: 2

Patch Set 4 : Fixed isDigit to take a char argument. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -31 lines) Patch
M lib/json/json.dart View 1 2 3 6 chunks +43 lines, -31 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Anders Johnsen
8 years, 8 months ago (2012-04-28 09:01:55 UTC) #1
Anton Muhin
LGTM https://chromiumcodereview.appspot.com/10254029/diff/3/lib/json/json.dart File lib/json/json.dart (right): https://chromiumcodereview.appspot.com/10254029/diff/3/lib/json/json.dart#newcode99 lib/json/json.dart:99: _JsonParser._internal(String json) nit: ._internal(this.json) ? https://chromiumcodereview.appspot.com/10254029/diff/3/lib/json/json.dart#newcode282 lib/json/json.dart:282: if ...
8 years, 8 months ago (2012-04-28 09:09:24 UTC) #2
Anders Johnsen
Updated. https://chromiumcodereview.appspot.com/10254029/diff/3/lib/json/json.dart File lib/json/json.dart (right): https://chromiumcodereview.appspot.com/10254029/diff/3/lib/json/json.dart#newcode99 lib/json/json.dart:99: _JsonParser._internal(String json) On 2012/04/28 09:09:24, antonmuhin wrote: > ...
8 years, 8 months ago (2012-04-28 09:28:26 UTC) #3
Anton Muhin
Thanks a lot for explanations. https://chromiumcodereview.appspot.com/10254029/diff/7001/lib/json/json.dart File lib/json/json.dart (right): https://chromiumcodereview.appspot.com/10254029/diff/7001/lib/json/json.dart#newcode309 lib/json/json.dart:309: char = _nextChar(); char ...
8 years, 8 months ago (2012-04-28 09:30:35 UTC) #4
Anders Johnsen
8 years, 8 months ago (2012-04-28 09:35:56 UTC) #5
Updated and committing - thanks for the reviews! :)

https://chromiumcodereview.appspot.com/10254029/diff/7001/lib/json/json.dart
File lib/json/json.dart (right):

https://chromiumcodereview.appspot.com/10254029/diff/7001/lib/json/json.dart#...
lib/json/json.dart:309: char = _nextChar();
On 2012/04/28 09:30:35, antonmuhin wrote:
> char might be either the code or false, is this intended?  And both _isDigit
and
> _nextChar fetch the char, do we want to do that?

Nope, nice catch! :)

Powered by Google App Engine
This is Rietveld 408576698