Commit Graph

55 Commits

Author SHA1 Message Date
kathyw@google.com bc2a4fae5b Copyedit pass over args library description; fixed some example code
R=mcampione@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27388 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 15:35:01 +00:00
kevmoo@j832.com 87a80f6a32 pkg/args: expose immutable collections
BUG= https://code.google.com/p/dart/issues/detail?id=10127
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25347 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 16:56:13 +00:00
amouravski@google.com 2e5ee49022 Added the continueParsing option to ArgParser.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24366 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 20:55:13 +00:00
amouravski@google.com 359d2beb4d Added new style of tests for parser.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24207 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 23:05:42 +00:00
amouravski@google.com 948fdd1e43 Moved the Option class to its own file in anticipation of working on it.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24107 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 19:15:15 +00:00
antonm@google.com 4638137480 Switch from DRT to content shell.
R=kustermann@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23328 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 08:34:52 +00:00
rnystrom@google.com e7f3c51a64 Allow passing in an existing ArgParser for a command.
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22973 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 23:20:27 +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
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
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
kevmoo@j832.com 519fa6c224 pkg/args Option should be more strict about names and abbreviations
Should not allow: space, \t, \r, \n, single- and double-quote, slashes
Should not allow empty string
Should not allow '-' as the beginning character

name should not be allowed to be null (although it's fine for abbreviation)

BUG=https://code.google.com/p/dart/issues/detail?id=8965

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20040 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 18:00:21 +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
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 fa78a93635 Make arg parser return growable list of rest arguments.
This allows the user to remove them when he's done, which is what
is currently being done.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19119 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 09:48:17 +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
sigmund@google.com 16eba207b6 Fix use of stringbuffer in pkg/args
Review URL: https://codereview.chromium.org//12335035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18902 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 18:21:18 +00:00
floitsch@google.com ecce8a6293 Remove deprecated Strings class.
Review URL: https://codereview.chromium.org//12295014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18686 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:57:03 +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
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
rnystrom@google.com 2394891f64 Add command support to args.
Review URL: https://codereview.chromium.org//11819068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16988 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:03:21 +00:00
rnystrom@google.com 2dd41b5c83 Split the args tests into a couple of smaller suites.
Review URL: https://codereview.chromium.org//11817027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16882 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:02:21 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
rnystrom@google.com cef256ecf1 Convert the small packages in pkg to use "package:".
Review URL: https://codereview.chromium.org//11575043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16189 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-15 01:05:35 +00:00
dgrove@google.com 33abe0ef0a Add authors and homepages to packages.
Review URL: https://codereview.chromium.org//11418267

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15601 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 21:16:01 +00:00
ahe@google.com f4ca9548c9 Allow tests to specify a package root.
Use a shared package root if none is specified.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15070 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 11:35:57 +00:00
ahe@google.com 88a921030d Revert "Allow tests to specify a package root."
Revert "Add dependencies for bots that doesn't build everything."

This reverts r15066 and r15064.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15068 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 10:42:55 +00:00
ahe@google.com 89cc5a2d23 Allow tests to specify a package root.
Use a shared package root if none is specified.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15064 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 09:51:17 +00:00
ajohnsen@google.com ab69873a42 Make RegExp constructor non-const.
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com ec9fee9858 "Reverting 14829-14832"
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com 8dc3edd7ce Make RegExp's constructor non-const.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
gram@google.com afd6a79416 Update library syntax in pkg files.
Review URL: https://codereview.chromium.org//11362139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14646 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 18:52:40 +00:00
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00
floitsch@google.com 2e778387b3 Make getKeys, getValues getters (keys, values).
Review URL: https://codereview.chromium.org//11267018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14093 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 19:22:11 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
regis@google.com 8c3cfbb381 Second round of cleanups for new optional parameter semantics.
Review URL: https://codereview.chromium.org//11194025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13759 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:58:19 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
rnystrom@google.com 2bd10c28b4 Apply patch from https://codereview.chromium.org/10967042/.
Review URL: https://codereview.chromium.org//10985035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12885 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 23:40:24 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
danrubel@google.com 9b89419e88 migrate raw string to new syntax in pkg
Review URL: https://codereview.chromium.org//10961061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12754 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-22 19:41:42 +00:00
rnystrom@google.com a5c8f9f2da Commit patch: https://codereview.chromium.org/10914320/
Thanks, Matt!

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12603 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 21:17:49 +00:00
efortuna@google.com 9163dfe93c revert 1204. Will investigate when I get a chance.
TBR=rnystrom
Review URL: https://codereview.chromium.org//10928216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12413 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 01:21:41 +00:00
rnystrom@google.com 383488ec4f Update unittest to new package layout.
Review URL: https://codereview.chromium.org//10917275

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12404 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:12:17 +00:00
rnystrom@google.com 659a57df3e Revert "Make unittest follow the new package layout."
This reverts commit 38f7d16f373832a7bf889192af7845cb602aec01.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12400 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 19:43:10 +00:00
rnystrom@google.com 2ba81033a6 Make unittest follow the new package layout.
Review URL: https://codereview.chromium.org//10918240

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12396 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 18:22:24 +00:00
rnystrom@google.com e11b3b82fe Make args package follow new layout.
Review URL: https://codereview.chromium.org//10919249

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12284 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:31:42 +00:00
rnystrom@google.com 1d9d8bab65 Take external patch from https://chromiumcodereview.appspot.com/10918056/.
Review URL: https://codereview.chromium.org//10933052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12278 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 19:26:49 +00:00
kasperl@google.com 9beb871852 Get rid of a lot of () for getters.
R=bak@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10919146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12017 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:50:07 +00:00
iposva@google.com 0dd77bf634 - Change "static final" to "static const" in the
pkg/, language/, utils/ and lib/core/ directories.
Review URL: https://chromiumcodereview.appspot.com//10919024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11703 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 17:47:17 +00:00
bak@google.com 040a759e13 Removed syntax error from example.dart.
Review URL: https://chromiumcodereview.appspot.com//10896034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11506 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 10:18:52 +00:00