sigmund@google.com
b66a9d9360
patch from issue 9360020
...
Adds three methods to Future to codify common patterns:
new Future<T>.immediate(T): a Future is desired, but the object is already
available
Future Future<T>.transform(Function): perform a sync computation once an async
computation is complete
Future Future<T>.chain(Function): perform an async computation once an async
computation is complete
Contributed by sammccall@google.com
BUG=dart:1516
Review URL: https://chromiumcodereview.appspot.com//9372008
Patch from Sam McCall <sammccall@google.com >.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4056 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 01:09:06 +00:00
floitsch@google.com
e590cbf299
Fix split with regexp for frog.
...
Review URL: https://chromiumcodereview.appspot.com//9352016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3998 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-07 15:06:42 +00:00
iposva@google.com
1edc2e8edb
- Remove support for ">>>" operator.
...
Committed: https://code.google.com/p/dart/source/detail?r=3279
Review URL: http://codereview.chromium.org//9203004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3280 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 09:11:05 +00:00
gbracha@google.com
d3bcc88674
Added method map to Collection interface and all its implementations (except classes generated from IDL for the DOM).
...
Review URL: http://codereview.chromium.org//9114021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3223 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 01:25:01 +00:00
ajohnsen@google.com
5dcd61b851
Futures.wait should call then, even if some(or all) of the futures are done
...
Review URL: http://codereview.chromium.org//9108010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3033 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 12:41:29 +00:00
sigmund@google.com
bfe2649732
frog: better binding of methods.
...
Review URL: http://codereview.chromium.org//8914024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2457 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 03:59:22 +00:00
regis@google.com
9f230a34c6
Implement type checking of list literals (issue 220).
...
Remove expose_core_impl flag.
Add tests.
Fix tests.
Cleanup type checking of map literals.
Review URL: http://codereview.chromium.org//8676001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1809 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:34:23 +00:00
floitsch@google.com
b34a3599a7
Use Expect.listEquals instead of own version.
...
R=ngeoffray@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8576002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1565 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 13:13:54 +00:00
floitsch@google.com
1bf944156e
Fix dual-pivot sort.
...
BUG=dart:432
TEST=
Review URL: http://codereview.chromium.org//8510047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1506 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:57:59 +00:00
floitsch@google.com
e24dec2169
Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset().
...
BUG=dart:418
TEST=
Review URL: http://codereview.chromium.org//8537011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1505 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:56:18 +00:00
jmesserly@google.com
488fa4dd32
Adds typechecking of return values
...
Also fixes places in frog where we were returning things from "void" methods.
Review URL: http://codereview.chromium.org//8534001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1443 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:36:15 +00:00
ager@google.com
5b5c36e253
Implement async file API on top of isolates.
...
This is not going to be efficient but will give us the right
semantics of the operations. We should be using native async
operations for this.
Fixed a bug in VM implementation of List.setRange.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8431028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1012 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 14:07:30 +00:00
srdjan@google.com
f5713b39eb
Fix buildbot breakage for checked mode (allow TypeError as well).
...
Review URL: http://codereview.chromium.org//8430012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@965 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 19:01:48 +00:00
srdjan@google.com
6d8d978d5a
FIx issue 261: throw exception if index if idnexed oeprators if lists Array and GrowableArray is not int.
...
Review URL: http://codereview.chromium.org//8387035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@962 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:40:32 +00:00
ngeoffray@google.com
210fd33d0a
Remove List.fromList constructor, and List.copyFrom. They are duplicates of the new range methods.
...
Review URL: http://codereview.chromium.org//8422005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@941 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 09:49:15 +00:00
asiva@google.com
69a41e4c4c
- Add new test for regex
...
- Update test status
Review URL: http://codereview.chromium.org//8399016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@902 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 17:32:29 +00:00
iposva@google.com
cf982eb4c5
- Remove remaining Array interface.
...
Review URL: http://codereview.chromium.org//8346022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@544 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 00:50:39 +00:00
ngeoffray@google.com
70c01beb9b
Clean up (most) uses of Array. Still more to come in the VM corelib code base.
...
Review URL: http://codereview.chromium.org//8321024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@507 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 10:02:59 +00:00
ngeoffray@google.com
52aa068f73
Implement List.insertRange.
...
Review URL: http://codereview.chromium.org//8271029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@439 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:44:18 +00:00
ngeoffray@google.com
85804080f3
Implement List.getRange.
...
Review URL: http://codereview.chromium.org//8276005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@403 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 16:24:09 +00:00
ngeoffray@google.com
b69b4200c8
Implement removeRange, and update some documentation on the list interface.
...
Review URL: http://codereview.chromium.org//8273004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@400 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:54:48 +00:00
ngeoffray@google.com
edcae54a2c
Implement setRange on DartC and the VM.
...
Review URL: https://chromereviews.googleplex.com/3574018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@394 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:58:49 +00:00
ngeoffray@google.com
76ef8258a4
Create a standalone test directory and move tests in runtime/tests/dart (mostly) to that directory.
...
Review URL: http://codereview.chromium.org//8261009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@393 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:44:29 +00:00
ngeoffray@google.com
96303f1dab
Use import directives instead of --expose_core_impl.
...
Review URL: https://chromereviews.googleplex.com/3561018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@227 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:56:12 +00:00
floitsch@google.com
6a5e62c07e
Add a double.compareTo test.
...
Review URL: https://chromereviews.googleplex.com/3561015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@221 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:16:29 +00:00
ngeoffray@google.com
394ddb3f29
Checked mode is soooo right.
...
Review URL: https://chromereviews.googleplex.com/3577015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@218 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:50:39 +00:00
antonm@google.com
3d26b7d9f0
Introduce Maps.
...
This class helps to implement Map interface provided you have basic operations
like [], []=, remove and getKeys.
Review URL: https://chromereviews.googleplex.com/3549015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@216 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:36:51 +00:00
ngeoffray@google.com
8b8b4844fa
Add default arguments for regexp flags.
...
Review URL: https://chromereviews.googleplex.com/3558016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@213 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 12:47:56 +00:00
floitsch@google.com
312a19af39
Add INFINITY, NAN and NEGATIVE_INFINITY to double.
...
Review URL: https://chromereviews.googleplex.com/3572013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@212 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 11:49:02 +00:00
ngeoffray@google.com
c2b5e488da
Remove substringToEnd.
...
Review URL: https://chromereviews.googleplex.com/3561013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@201 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:41:38 +00:00
floitsch@google.com
251cb020ec
Add comments to DateTimeTest.
...
R=ngeoffray@google.com
Review URL: https://chromereviews.googleplex.com/3540014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@131 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:28:14 +00:00
floitsch@google.com
1229e5b8db
Implement Date.weekday.
...
Review URL: https://chromereviews.googleplex.com/3541012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@125 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:41 +00:00
floitsch@google.com
382580f9a7
Rename Time to Duration and adapt methods.
...
Review URL: https://chromereviews.googleplex.com/3536013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@121 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:21:57 +00:00
floitsch@google.com
15727ed074
Rename DateTime to Date.
...
Review URL: https://chromereviews.googleplex.com/3529013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
floitsch@google.com
98d704a3cb
Remove Date class and remove .time from DateTime.
...
Review URL: https://chromereviews.googleplex.com/3508024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@103 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:20:30 +00:00
ngeoffray@google.com
c05cfb10c0
- Now that prefixes have been implemented, remove the trampoline hack for calling main in a browser test.
...
- Update some tests to define #library, as the #library is required by the dart blob we're emitting for testing in the browser
- Update language.status to reflect reality.
Review URL: https://chromereviews.googleplex.com/3522016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@94 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:11:49 +00:00
dgrove@google.com
ebe439410d
Initial checkin.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 06:22:36 +00:00