podivilov@google.com
457105b44e
Fix comments in json.dart.
...
R=sgjesse@google.com
Review URL: https://chromiumcodereview.appspot.com//10664015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9099 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 07:51:10 +00:00
podivilov@google.com
fe5c605b9b
Implement JSON serialization to stream.
...
R=antonm@google.com ,ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10632002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8991 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:48:28 +00:00
eub@google.com
e0c3b45219
Text run together in JSON docs
...
Review URL: https://chromiumcodereview.appspot.com//10539164
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8686 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 20:49:29 +00:00
dgrove@google.com
711358bd4b
Eliminate switches that are not on const ints or strings (as required in spec 0.09).
...
Really wish we had enum.
Review URL: https://chromiumcodereview.appspot.com//10409003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7751 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 16:56:48 +00:00
hausner@google.com
aecd8bc4f9
Add a check to JSON code
...
Addressing Anton's review comment. Also removing a leftover
debugging printf.
TBR=antonm
Review URL: https://chromiumcodereview.appspot.com//10391139
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7659 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 16:05:40 +00:00
hausner@google.com
de86bd5ed8
Debugger wire protocol: setting breakpoints
...
- Adding commands to set breakpoints and showing current stack trace.
- Adding a callback hook to signal when a breakpoint gets resolved to
and actual line number.
- Adding ids for breakpoints and new breakpoint API functions, deprecating
the existing ones.
- Adding one helper function to the JSON class
Anton may want to take a look at the JSON addition.
Review URL: https://chromiumcodereview.appspot.com//10383164
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7628 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 21:10:25 +00:00
ajohnsen@google.com
d796a6fbae
Update locale char when moving position in number parsing in the JSON parser.
...
BUG=http://code.google.com/p/dart/issues/detail?id=2858
TEST=
Review URL: https://chromiumcodereview.appspot.com//10307003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7219 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 09:06:05 +00:00
ajohnsen@google.com
e686a54cd3
Fix errors in the JSON parser.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10254029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7122 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 09:36:32 +00:00
antonm@google.com
4c84e65fc1
Add a space at the end of line being parsed to correctly process cases like 3.14.
...
TBR=ajohnsen@google.com
BUG=2782
TEST=json_test.dart
Review URL: https://chromiumcodereview.appspot.com//10257029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7121 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 08:21:47 +00:00
ajohnsen@google.com
318071c523
Revert to throwing strings in JSON parsing.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10252002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7061 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 08:38:24 +00:00
ajohnsen@google.com
66bddb1ec9
Require a digit when parsing JSON number.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10206022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7059 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 08:08:25 +00:00
ajohnsen@google.com
29e5a0318e
Optimize the JSON parser by tokenizing while parsing and using jump-table.
...
I've also updated the test to include a few corner cases.
My tests shows a 50-80% speedup. The optimization will also give a lower
memory usage since we don't keep a list of all tokens alive.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10230004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7056 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:07:39 +00:00
antonm@google.com
eb94e4a5bf
Migrate to interpolation instead of concatenation.
...
Review URL: https://chromiumcodereview.appspot.com//10124010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6756 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 17:25:27 +00:00
rice@google.com
665c50ed60
Fix escaping in JSON.stringify and add unit test
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9465023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4622 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 16:11:05 +00:00
ajohnsen@google.com
f977ac9e7e
Make lists parsed by JSON untyped.
...
Review URL: https://chromiumcodereview.appspot.com//9387007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4219 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 13:42:28 +00:00
dgrove@google.com
866eecc34a
Move json to lib/json/{json.dart, json_frog.dart}
...
Review URL: http://codereview.chromium.org//9374030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4101 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 23:38:34 +00:00