Commit Graph

72 Commits

Author SHA1 Message Date
alanknight@google.com 4c5223f7a6 Switched Serialization identityMap to use a wrapper, not linear search.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23467002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26737 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 19:08:00 +00:00
alanknight@google.com 578d4c24e4 Change reflective serialization rules to be able to take type literals
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23447003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26720 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 16:53:42 +00:00
kathyw@google.com 19079d26da serialization library-level doc comments
R=mcampione@google.com

Review URL: https://codereview.chromium.org//23424002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26690 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 07:46:20 +00:00
kevmoo@j832.com 9692e19334 pkg/serialization updates
Serialiation.rules is now publicly unmodifiable
More return types
locked down some fields with final

R=alanknight@google.com

Review URL: https://codereview.chromium.org//22375012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26071 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 18:23:26 +00:00
kevmoo@j832.com 18d38085ab pkg: analysis aided cleanup
Removed a lot of warnings and hints when opening many pkg projects in the editor

R=gram@google.com

Review URL: https://codereview.chromium.org//22284003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25831 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 20:42:04 +00:00
kevmoo@j832.com 11ccfad71b pkg/serialization: add format param to Serialization.read method
Made read/write params named instead of positional

R=alanknight@google.com

Review URL: https://codereview.chromium.org//17578002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24487 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:34:52 +00:00
floitsch@google.com 48b1656690 Allow Object when doing lookups.
According to our typing rules a Set<Apple> is a Set<Fruit>. However, before this change, we couldn't use it as a Set<Fruit>:

===
bool foo(Set<Fruit> fruits) {
  // Would yield a type-error since we actually got a Set<Apple>.
  return fruits.contains(new Banana());
}

foo(new Set<Apple>());
===

R=ajohnsen@google.com, blois@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//14246008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24326 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 12:45:10 +00:00
kevmoo@j832.com 3579b85204 pkg/serialization: cleanup
R=alanknight@google.com

Review URL: https://codereview.chromium.org//17379025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24306 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 23:24:25 +00:00
ahe@google.com 9f19ff761e Work around VM bug in ClassMirror.superclass.
R=alanknight@google.com

Review URL: https://codereview.chromium.org//16745007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23859 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:45:46 +00:00
floitsch@google.com 5d058bb0eb Adding isNotEmpty property to collection and string.
BUG= http://dartbug.com/3074
R=floitsch@google.com

Review URL: https://codereview.chromium.org//15263004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23294 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 17:30:37 +00:00
sgjesse@google.com 9d6a64e81b Merge the dart:uri library into dart:core and update the Uri class
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.

* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization

R=floitsch@google.com, lrn@google.com, nweiz@google.com, scheglov@google.com
BUG=

Review URL: https://codereview.chromium.org//16019002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
alanknight@google.com e5d595681c Add a DateTimeRule to default serialization
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//14578008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22750 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-15 17:56:45 +00:00
alanknight@google.com cdb307fe06 Change default format to produce output that can be passed between isolates
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//14566015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22686 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 16:34:23 +00:00
kevmoo@j832.com b215e0ecfb pkg/serialization - more types
R=alanknight@google.com

Review URL: https://codereview.chromium.org//14985015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22637 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 18:08:11 +00:00
alanknight@google.com 2ea02fe7ca Fix regression in meta-serializing rules
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//14773027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22603 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:15:29 +00:00
kevmoo@j832.com b07a7fd229 fix for return type issue in 22524
R=alanknight@google.com

Review URL: https://codereview.chromium.org//14688020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22526 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 19:43:38 +00:00
kevmoo@j832.com d28d86f8dc pkg/serialization types cleanup
Hide a few things, fix return types, make a few things final, etc.

R=alanknight@google.com

Review URL: https://codereview.chromium.org//14793016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22524 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 18:59:40 +00:00
alanknight@google.com 66fbf314d5 adding missing interfaces to _LazyList
R=alanknight@google.com

Review URL: https://codereview.chromium.org//13985040

Patch from Adam Singer <financecoding@gmail.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22143 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 19:11:31 +00:00
alanknight@google.com 2abd6c9b51 Fix for mirror API breaking change to index libraries by URI, and clean up references in doc comments
Review URL: https://codereview.chromium.org//14447008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22040 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 16:49:38 +00:00
alanknight@google.com 1e92447b78 Update pkg/serialization to use Symbols and synchronous mirrors
Review URL: https://codereview.chromium.org//13982012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21818 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 17:00:58 +00:00
sethladd@google.com 8fd2c2e5ea add installation instructions to pkg packages
BUG=

Review URL: https://codereview.chromium.org//14188048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21770 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 20:51:10 +00:00
floitsch@google.com 759a366cea Remove insertRange.
Review URL: https://codereview.chromium.org//13956006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
lrn@google.com 485c8a5999 Move Iterable implementation to collection.
Add IterableMixin and IterableBase to dart:collection.
For now, the implementation is duplicated, because mixins and const
constructors don't mix. We hope that mixins will be improved in the
future to allow using the mixin to define the base class.

Review URL: https://codereview.chromium.org//14022007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21457 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 14:32:16 +00:00
gbracha@google.com e08647bfd3 BREAKING CHANGE: Rename InstanceMIrror.invoke, .getField, .setField to invokeAsync, getFieldAsync, setFieldAsync. Likewise ClosureMirror.apply and ClassMIrror.newInstance. This is in preparation of new synchronous versions of the originals.
Review URL: https://codereview.chromium.org//13967003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21242 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:58:22 +00:00
lrn@google.com 24e3c0bbb0 Reapply "Reduce usage of IterableMixinWorkaround"
Fix bug and recommit

Review URL: https://codereview.chromium.org//13496014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21049 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 08:07:39 +00:00
erikcorry@google.com 4e0db7cede Revert 20969: Reduce usage of IterableMixinWorkaround
R=ahe@google.com
BUG=

Review URL: https://codereview.chromium.org//13598015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20972 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:18:13 +00:00
lrn@google.com f3608405a3 Reduce usage of IterableMixinWorkaround.
Review URL: https://codereview.chromium.org//13685004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20969 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:01:19 +00:00
alanknight@google.com c0eea0c042 Fix bug in code sample
Review URL: https://codereview.chromium.org//13581006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20897 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 22:01:08 +00:00
lrn@google.com 3b13f62170 Remove addLast from List.
The List.addLast method has been deprecated for quite a while.
A recent change removed it from the interface, but left the
implementation in place (which caused some errors from the analyzer).
This removes it completely.

Review URL: https://codereview.chromium.org//13528004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20857 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-03 12:52:19 +00:00
alanknight@google.com 6ed8fcc992 Add test and fix for 9203, fix sdk dep, delete unused file.
Review URL: https://codereview.chromium.org//12604023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20346 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 20:40:17 +00:00
kevmoo@j832.com 1d9013517e Moved pkg pubspecs to use dev_dependencies where appropriate
BUG=https://code.google.com/p/dart/issues/detail?id=9309

Review URL: https://codereview.chromium.org//12962003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20285 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 19:41:10 +00:00
floitsch@google.com 76d507cb6f Add List.insert.
BUG= http://dartbug.com/5375

Review URL: https://codereview.chromium.org//12383073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20037 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 17:38:14 +00:00
floitsch@google.com 65718c56df Rename XMatching to XWhere.
For example firstMatching -> firstWhere.

BUG= http://dartbug.com/8664
BUG= http://dartbug.com/8337

Review URL: https://codereview.chromium.org//12537009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19880 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 17:34:49 +00:00
floitsch@google.com d91bca2813 Add List.asMap().
Review URL: https://codereview.chromium.org//12391046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19399 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 16:57:52 +00:00
lrn@google.com f4300b84a2 Make List.from and Iterable.toList default to not growable.
Review URL: https://codereview.chromium.org//12401002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19391 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 14:55:40 +00:00
lrn@google.com 6b4f4b1bab Change new List(n) to return fixed length list.
Deprecate List.fixedLength, add List.filled.

Make Iterable.toList and List.from take "growable" argument,
defaulting to false.

Review URL: https://codereview.chromium.org//12328104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19112 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 08:45:04 +00:00
lrn@google.com 3c0ac360e7 Remove deprecated string features.
Make String.codeUnits return a List.

Review URL: https://codereview.chromium.org//12282038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 10:48:09 +00:00
lrn@google.com bbfe7b02dc Reapply "Make Comparable generic."
Avoid concurrent modification in dart2js.
Avoid crash in VM by not using self-referential type bound.

Review URL: https://codereview.chromium.org//12288040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18667 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 10:29:44 +00:00
kasperl@google.com d4feeb4910 Revert "Make Comparable generic."
This reverts commit dd714db881a0ad63eaa1e5491e93dd8843eb5929.

R=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org//12298027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18657 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 08:06:03 +00:00
lrn@google.com a0f22b77be Make Comparable generic.
It's now allowed to write "class X implements Comparable<X>" to make
X comparable only to X's. The argument type of Comparable<T>.compareTo
is now T.

Review URL: https://codereview.chromium.org//12255055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18655 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 07:52:24 +00:00
lrn@google.com 03f5a66836 Recommit changing List.skip/take/revert returns Iterable and remove mappedBy.
This reverts r18591.

Review URL: https://codereview.chromium.org//12295009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18615 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 10:35:51 +00:00
rnystrom@google.com 0e0473d33a Unbreak pub:
Revert "Make List.skip, List.take and List.reversed return Iterables, not Lists."

This reverts commit 44c3745a76acfad3d1d5bfc7a8b8c8e2def30e09.

Revert "Remove deprecated mappedBy."

This reverts commit 779ab69eab73e5e349245e99560b18955908e0cc.

BUG=dartbug.com/8560

Review URL: https://codereview.chromium.org//12286004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18591 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 18:38:42 +00:00
floitsch@google.com 0672317bec Remove deprecated mappedBy.
Committed: https://code.google.com/p/dart/source/detail?r=18575
Reverted: http://code.google.com/p/dart/source/detail?r=18576

Review URL: https://codereview.chromium.org//12212213

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:57:18 +00:00
floitsch@google.com ad839e6957 Revert "Remove deprecated mappedBy."
This reverts commit 18575.

Review URL: https://codereview.chromium.org//12207205

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18576 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:23:22 +00:00
floitsch@google.com b37100770b Remove deprecated mappedBy.
Review URL: https://codereview.chromium.org//12212213

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18575 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:18:17 +00:00
dgrove@google.com 278d7b0c74 Update documentation links to point to the correct URLs.
Review URL: https://codereview.chromium.org//12252055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18552 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:27:10 +00:00
alanknight@google.com 84b4fc6a80 Fix modification of map while iterating in SimpleJsonFormat
Review URL: https://codereview.chromium.org//12210151

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18527 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 18:30:21 +00:00
amouravski@google.com 9cbede1d32 Added documentation links to all of the pkg packages hosted on api.dartlang.org.
Review URL: https://codereview.chromium.org//12218119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18414 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-12 23:38:30 +00:00
alanknight@google.com 9fef95b7cc Some fixes to work better with the services framework
Review URL: https://codereview.chromium.org//12136002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18357 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 23:38:22 +00:00
lrn@google.com 9b23dff467 Reapply "Rename mappedBy to map."
This reverts commit r17907.

TBR.

Review URL: https://codereview.chromium.org//12090093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00