Commit Graph

3219 Commits

Author SHA1 Message Date
scheglov@google.com c0a0b5db5e Issue 5293. Invocation of an undefined static method should be a warning, not an error
http://code.google.com/p/dart/issues/detail?id=5293

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12716 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 15:06:21 +00:00
scheglov@google.com d6a06d9070 Issue 5240. Using a non-type in a const object expression is an error, not a warning
http://code.google.com/p/dart/issues/detail?id=5240

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12711 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 14:14:03 +00:00
johnniwinther@google.com 2a82f822b9 Import scope rules updated.
BUG=2946

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12706 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 14:02:25 +00:00
ahe@google.com d71bc06273 Implement Object.hashCode()
Review URL: https://codereview.chromium.org//10965034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12704 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 13:34:57 +00:00
ngeoffray@google.com 701caab5de Correctly handle const constructors with type parameters.
Review URL: https://codereview.chromium.org//10970006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12697 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 12:45:51 +00:00
ahe@google.com b2950833dd Update test status after implementing library syntax.
Review URL: https://codereview.chromium.org//10970036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12694 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 11:44:02 +00:00
antonm@google.com 7aa87c0e60 Update dart2dart expectations after r12686 "Parse new library syntax."
TBR=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12689 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 10:39:59 +00:00
ahe@google.com fcc9f5f0ff Parse new library syntax.
Committed: https://code.google.com/p/dart/source/detail?r=12386
But reverted in: https://code.google.com/p/dart/source/detail?r=12387

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12686 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 09:08:12 +00:00
scheglov@google.com 3c4080aff2 Issue 5163. Constructor/member name conflict should be error
http://code.google.com/p/dart/issues/detail?id=5163

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12660 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 21:31:09 +00:00
antonm@google.com 079b52d5d2 Force a space after empty list literal.
We can be more clever about it later like verifying next token.  And there is
a chance that will be correct Dart too.

R=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12636 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 13:39:02 +00:00
brianwilkerson@google.com 9e753b5059 Finish triaging c019 test failures
Review URL: https://codereview.chromium.org//10957002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12609 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 22:08:16 +00:00
antonm@google.com 62ddfe6f29 Remove commented out line.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12595 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 19:37:40 +00:00
scheglov@google.com dda26cdfaa Issue 5162. Report error when initializing already initialized final field
http://code.google.com/p/dart/issues/detail?id=5162

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12594 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 19:37:06 +00:00
scheglov@google.com 627f9805df Issue 5232. Type variables are in static scope, but using them is error
http://code.google.com/p/dart/issues/detail?id=5232

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12588 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 18:57:37 +00:00
antonm@google.com 09cf567cab Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12576 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 16:50:57 +00:00
antonm@google.com 6d300d1543 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12574 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 16:34:35 +00:00
antonm@google.com b26899502d Store status for dart2dart tests in a separate file.
R=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12571 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 16:16:37 +00:00
scheglov@google.com c095d071e9 Issue 5052. Analyzer should treat assert as a keyword
http://code.google.com/p/dart/issues/detail?id=5052

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12566 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 15:30:12 +00:00
smok@google.com 82afbccb2f [dart2dart] Cut declaration types by default if we check that it is safe to do so.
Review URL: https://codereview.chromium.org//10917298

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12560 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 13:46:33 +00:00
antonm@google.com 41238825ed Register iterate-protocol helper if there is for-in.
Methods Iterable.iterator, Iterator.next and Iterator.hasNext
are invoked implicitly by for-in loops.

R=ahe@google.com,karlklose@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12557 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 12:51:28 +00:00
antonm@google.com 0d63573347 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12550 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 10:35:20 +00:00
antonm@google.com aa5f2c7e71 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12546 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 10:10:35 +00:00
antonm@google.com 754cb9c26d Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12545 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 09:39:15 +00:00
antonm@google.com 13de87215b Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12537 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 08:24:46 +00:00
antonm@google.com c1ac4ad48f Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12534 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 07:58:55 +00:00
antonm@google.com 3be1a4fb5e Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12532 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 07:26:02 +00:00
scheglov@google.com a17964f959 Issue 5153. Setter should not conflict with method
http://code.google.com/p/dart/issues/detail?id=5153

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12528 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 01:17:29 +00:00
antonm@google.com ca6ec2d372 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12489 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 12:03:31 +00:00
antonm@google.com 8ccbb0ef5e Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12486 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:58:58 +00:00
ager@google.com 1159462fc6 Switch from interfaces to abstract classes in dart:io.
Add a bunch of default argument values to the abstract classes
so they are picked up by dartdoc.

R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12484 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:54:37 +00:00
antonm@google.com 3a9fdcc250 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12483 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:44:44 +00:00
antonm@google.com 072e11b804 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12481 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 10:27:31 +00:00
antonm@google.com 4e1cc01f14 Triaging dart2dart co19 tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12479 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 09:28:35 +00:00
antonm@google.com ace3d6d9bf First triage of co19 dart2dart tests.
TBR=smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12477 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 09:09:13 +00:00
lrn@google.com 24ec1f24f5 Update test expectations some more.
TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12466 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 06:13:29 +00:00
lrn@google.com 1d6dc5ad6a Drop analyzer exceptions for co19. It doesn't understand "dynamic" anyway.
The analyzer only gives warnings for non-existing properties, so there
is no error, even if .dynamic isn't there any more.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12450 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 19:22:57 +00:00
lrn@google.com 99749ca619 This reapplies the change to remove "dynamic" from Object.
TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12449 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 19:14:49 +00:00
scheglov@google.com 6fffdf490a Issue 5148. Error on abstract method in concrete class needs to be a warning
http://code.google.com/p/dart/issues/detail?id=5148

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12445 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 17:09:27 +00:00
ngeoffray@google.com d4d2e1a399 Report errors when the number of arguments don't match the number of parameters in a const constructor call.
Review URL: https://codereview.chromium.org//10916335

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12435 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 13:59:52 +00:00
lrn@google.com 54d6cbda76 Revert "Remove Object.dynamic."
Some test expectations were missing.

TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12433 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 12:10:29 +00:00
lrn@google.com 9cc07e2f3f Remove Object.dynamic.
Review URL: https://codereview.chromium.org//10914286

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12432 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 12:00:44 +00:00
ngeoffray@google.com bef1d105d2 Avoid timeouts in dart2js/release/checked.
Review URL: https://codereview.chromium.org//10909264

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12428 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 10:17:49 +00:00
ngeoffray@google.com 9572974e44 Put functions used in compile-time constants in the worklist of codegen.
Review URL: https://codereview.chromium.org//10915306

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12421 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 09:04:06 +00:00
hausner@google.com 19c8f19f5e Stop making classes implicitly abstract
Allocating an implicitly abstract class is no longer a runtime error.
Review URL: https://codereview.chromium.org//10910284

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12408 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 22:46:54 +00:00
scheglov@google.com 8184329d8b Issue 5075. Remove support for 'negate' and 'equals' operators
http://code.google.com/p/dart/issues/detail?id=5075

R=messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12393 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 17:38:40 +00:00
scheglov@google.com a2395ed946 Issue 5084. Report error if a type name appears multiple times in an implements clause
http://code.google.com/p/dart/issues/detail?id=5084

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12391 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 15:55:31 +00:00
ahe@google.com 8b7b049559 Revert "Parse new library syntax."
This reverts r12386.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12387 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:35:47 +00:00
ahe@google.com 4f66bc9539 Parse new library syntax.
Review URL: https://chromiumcodereview.appspot.com//10911298

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12386 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 14:13:10 +00:00
scheglov@google.com b388161d1f Issue 3476. Final variables don't have to have constant initializers
http://code.google.com/p/dart/issues/detail?id=3476

R=jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12382 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 13:04:19 +00:00
ngeoffray@google.com 04293eb214 Implement checked mode for const constructors.
Review URL: https://chromiumcodereview.appspot.com//10916232

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12370 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 09:47:18 +00:00