Commit graph

941 commits

Author SHA1 Message Date
nweiz@google.com 1dd302a00b Add a gitignore for pub's gyp outputs.
BUG=10191

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21992 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 22:19:21 +00:00
nweiz@google.com 8ce1364479 Have pub.gyp depend on the packages symlink directory.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21981 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:53:20 +00:00
nweiz@google.com cc6e2f7b93 Put a snapshot of pub in the SDK.
BUG=9117

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21979 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:43:39 +00:00
gram@google.com eccaec8f3b Updated testrunner:
- works with latest SDK
- understand and works with pub and pubspecs
- tested on Linux, Mac and Windows
- has its own tests

There is still as issue on Windows, where using Process.start to run a .bat file is not terminating until the timeout kills the cmd.exe process. My suspicion is that this is am issue with Process, not testrunner. I have contacted whesse et al about this.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21969 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:39:50 +00:00
johnniwinther@google.com 797c6aeeb9 Remove dartdoc specific methods from dart2js_mirror.
BUG=

Committed: https://code.google.com/p/dart/source/detail?r=21921

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21924 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:31:39 +00:00
johnniwinther@google.com e27e3c8a62 Revert "Remove dartdoc specific methods from dart2js_mirror."
This reverts commit r21921.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21922 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 06:54:13 +00:00
johnniwinther@google.com 314a922c9e Remove dartdoc specific methods from dart2js_mirror.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21921 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 06:36:08 +00:00
nweiz@google.com 24213beff5 Move pub into sdk/lib/_internal.
This also converts pub to a more package-like layout, which will help in the
eventual exposing of pub internals as a library. Since pub's sources are now in
lib/src, this also makes them importable from the tests and entrypoint using
"package:" imports.

BUG=6619

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21907 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 21:44:26 +00:00
johnniwinther@google.com f4f3958af1 Change MirrorSystem.libraries to Map<Uri, String>
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21812 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 13:01:20 +00:00
rnystrom@google.com 6c9cc582ec Use the cached pubspec if possible for describing hosted packages.
BUG=https://code.google.com/p/dart/issues/detail?id=9027

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21777 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 22:29:44 +00:00
rnystrom@google.com 76cc853f06 Disable SDK constraint checking on bleeding edge.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21773 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 21:13:08 +00:00
nweiz@google.com 89cb31e4c4 Fix some warnings in pub and pkg packages.
Review URL: https://codereview.chromium.org//13817008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21701 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 20:24:47 +00:00
rnystrom@google.com a204feb031 Fix type annotation.
Review URL: https://codereview.chromium.org//13933030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21700 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 20:12:59 +00:00
nweiz@google.com da643164c5 Migrate pub away from throwing strings.
This also makes it a little more intelligent about which errors it prints what
information for.

BUG=9921

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21698 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 20:08:20 +00:00
rnystrom@google.com fe71916d71 Switch to backtracking solver.
BUG=https://code.google.com/p/dart/issues/detail?id=9260

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21690 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 18:32:20 +00:00
rnystrom@google.com ff4ef8885b Select packages that match SDK constraints.
BUG=https://code.google.com/p/dart/issues/detail?id=9216

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21659 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 23:14:40 +00:00
rnystrom@google.com a2b229b4a0 Revise based on feedback from previous patch.
Review URL: https://codereview.chromium.org//14249006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21644 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-17 18:36:31 +00:00
rnystrom@google.com 91edf93383 Disable backtracking solver.
Review URL: https://codereview.chromium.org//14308004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21572 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 20:20:35 +00:00
rnystrom@google.com 67239a998d Use backtracking when solving dependency constraints.
Review URL: https://codereview.chromium.org//13095015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21563 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-16 18:34:45 +00:00
nweiz@google.com a80a4ad3ad Stop manually handling broken symlinks in listDir in pub.
Review URL: https://codereview.chromium.org//14187003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21529 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 23:24:20 +00:00
nweiz@google.com ee5f6fc653 Use the dart:io IOSink API in pub.
Review URL: https://codereview.chromium.org//14266003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21525 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 22:59:30 +00:00
floitsch@google.com 466d6670c1 Refactor Future constructors.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com 6c6ee276eb Remove tests that don't work with asBroadcastStreams anymore.
Review URL: https://codereview.chromium.org//14110012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21515 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:08:09 +00:00
floitsch@google.com a1e11534ec First round of fixes.
Review URL: https://codereview.chromium.org//14263019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21501 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:31:41 +00:00
floitsch@google.com 62d413ec91 Remove StreamController.broadcast.
Review URL: https://codereview.chromium.org//14136004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21499 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:08:17 +00:00
floitsch@google.com 5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com e2ee353940 Rename unsubscribeOnError to cancelOnError.
Review URL: https://codereview.chromium.org//14251013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21469 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:07:36 +00:00
ajohnsen@google.com b4eacbf8aa Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and RandomAccessFile.writeFrom.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21466 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:44:41 +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
floitsch@google.com bebe3ac2cd Refactor List.setRange function.
Review URL: https://codereview.chromium.org//13863012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
ajohnsen@google.com b09546b138 Don't delay IOSink.close() with no subscription to the next instance.
This fixes the issue with pub I found. Added TODO in pub, as
stdout/stderr doesn't really need wrapping anymore.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21431 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:21:08 +00:00
ajohnsen@google.com e718657e85 Fix dartc tests and pub after IOSink change.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21420 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:25:55 +00:00
ajohnsen@google.com 67650cb16e Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behaviour of the .done future.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21416 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 07:35:45 +00:00
floitsch@google.com 94fd64a5e2 Import math library with a prefix.
Review URL: https://codereview.chromium.org//14111004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21406 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-13 13:17:13 +00:00
ajohnsen@google.com 044f0d02eb Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
floitsch@google.com 285849c801 Change hasSubscribers to hasListener.
Review URL: https://codereview.chromium.org//14103010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21337 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:30:05 +00:00
amouravski@google.com f9e2907a23 Revert "Revert "Attempt to re-commit Dartdoc exports.""
This reverts commit 1340ca938883c2810fbc4e6d4ed4c52b68694faf.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21320 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 22:42:55 +00:00
amouravski@google.com e492c020ed Revert "Attempt to re-commit Dartdoc exports."
This reverts commit fd5ad9b823fab60724ef00b68beaa7756873ccf0.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21316 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 21:21:49 +00:00
amouravski@google.com 362cf71a5c Attempt to re-commit Dartdoc exports.
Review URL: https://codereview.chromium.org//14088002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21313 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 21:14:15 +00:00
ajohnsen@google.com dcaf52732e Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink.
With this change 'writeBytes' was renamed to 'add'.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21275 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:54:19 +00:00
lrn@google.com f41508d33b Added new version of reduce.
Removed min/max and uses of min/max.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21258 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 08:32:31 +00:00
ricow@google.com 9fd1680aa5 Fix apidoc dependencies and reenable editor test
Add back full copy of lib/_internal
Also fix snapshot dependency on old dart2js snapshot location
Review URL: https://codereview.chromium.org//14155002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21257 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:47:18 +00:00
ricow@google.com 7f11fa7ebd Mark oauth2/with_server_rejected_credentials_authenticates_again_test as flaky
Filed http://dartbug.com/9839
Review URL: https://codereview.chromium.org//14152003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21255 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:19:56 +00:00
ricow@google.com 00da866b33 Move the dart2js snapshot into bin directory of sdk root.
This is the first step in eliminating lib/_internal.
Review URL: https://codereview.chromium.org//13945008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21247 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 05:47:24 +00:00
nweiz@google.com b9120c526d Renumber a TODO from issue 4928 to issue 9832.
Review URL: https://codereview.chromium.org//14106004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21238 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:25:11 +00:00
rnystrom@google.com 68a5c9a803 Add flag to disable capturing stack traces.
BUG=http://dartbug.com/9697

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21237 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:20:43 +00:00
amouravski@google.com 3d7abb414a Exclude the expect library from apidoc.
Review URL: https://codereview.chromium.org//13818019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21227 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 19:42:26 +00:00
ahe@google.com adf844a4fe Make only_in_release_mode read the environment variable directly.
BUG=http://dartbug.com/9821

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21211 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 15:44:11 +00:00
nweiz@google.com d50f344915 Revert dartdoc documenting exports.
This is causing a bunch of weird build breakages and I'm not going to have time
to fix them all tonight.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21177 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 01:01:08 +00:00