lrn@google.com
26fab5183a
Move parseInt parseDouble to int/double classes as a static method.
...
Remove math dependency from core/coreimpl in dart2js.
The existing Math.parseInt and Math.parseDouble are kept *for now*, but
simply redirect to the static methods.
They will be removed in time (when library code is ready for it).
Review URL: https://codereview.chromium.org//10913271
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12417 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 07:25:38 +00:00
lrn@google.com
ec34263a9c
Make JSON.stringify call toJson() on objects that it can't serialize.
...
The toJson method must return a value that can be directly serialized
(a num/String/bool/Null/List/Map value).
Clean up of json.dart with more comments and less unnecessary privacy.
BUG=4716
Review URL: https://chromiumcodereview.appspot.com//10914009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12238 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 07:21:27 +00:00
dgrove@google.com
612120ae4c
remove json_frog.dart .
...
Review URL: https://chromiumcodereview.appspot.com//10912137
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11999 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 23:43:32 +00:00
kasperl@google.com
a3c813ae2d
Update corelib/ and lib/ to use the new try-catch syntax.
...
R=ngeoffray@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10891022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11504 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 09:58:07 +00:00
iposva@google.com
43c364c8e5
- Change "static final" to "static const" in the lib/ directory.
...
Review URL: https://chromiumcodereview.appspot.com//10880068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11401 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 18:28:29 +00:00
ager@google.com
722c1a3ce6
Deprecate Math object in corelib in favor of dart:math library.
...
Review URL: https://chromiumcodereview.appspot.com//10829459
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
johnniwinther@google.com
c6d70857e4
Several new features and improvements for dartdoc.
...
* Dartdoc now works on multiple libraries and entrypoints.
* A dartdoc/dartdoc.bat script is generated into dart-sdk/bin
* The API libraries recognized by dart2js using the 'dart:' prefix
have been updated to use the 'dart:*' name in their library tags.
This makes the libraries show up with the correct prefix in the API docs.
* The processed libraries can be selected or limited, API
libraries are not processed by default, and links to api.dartlang.org
can be generated for API libraries.
Because of the changed library tags on API libraries, the generated
links don't current match the addresses on api.dartlang.org.
For instance, the docs for Object is currently located in
api.dartlang.org/core/Object.html, but with the new library
tag 'dart:core', the address will be api.dartlang.org/dart_core/Object.html.
The links will thus not work until api.dartlang.org have been updated with
this patch.
* Code and pre blocks use overflow-x:auto to support wide lines.
BUG=2656,2686,3533,4029,4145,3555
Review URL: https://chromiumcodereview.appspot.com//10809035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9843 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 09:16:33 +00:00
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