Commit Graph

3219 Commits

Author SHA1 Message Date
zundel@google.com 5695d00452 Fix parse error on dead code in a switch statement
http://code.google.com/p/dart/issues/detail?id=2149

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8822 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 21:03:35 +00:00
brianwilkerson@google.com a9160e1ca4 Fix for issues 1473 and 3521
Review URL: https://chromiumcodereview.appspot.com//10574003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8821 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 20:52:56 +00:00
ahe@google.com 75a70e0b67 Allow built-in identifiers for labels.
Review URL: https://chromiumcodereview.appspot.com//10568011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8802 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 16:00:39 +00:00
scheglov@google.com 4e72987380 Issue 963. Check default values for parameters of local functions. Support for string interpolation.
http://code.google.com/p/dart/issues/detail?id=963

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8799 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 15:09:35 +00:00
ahe@google.com cbb19e240d Remove support for String operator + from dart2js.
Review URL: https://chromiumcodereview.appspot.com//10553007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8778 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 11:03:25 +00:00
scheglov@google.com a01d245a87 Issue 3530. Import elements into separate import namespace
http://code.google.com/p/dart/issues/detail?id=3530

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8696 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 22:55:41 +00:00
scheglov@google.com c1e44ea184 Issue 3550. Initial understanding "const".
http://code.google.com/p/dart/issues/detail?id=3550

To complete "const" support http://code.google.com/p/dart/issues/detail?id=3553 should be done.

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8670 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 17:00:45 +00:00
floitsch@google.com dd61a23829 Reapply "Refactor Date implementation in VM."
This reapplies fixed versions of commit 7542 and commit 8544.
Original review URLs:
https://chromiumcodereview.appspot.com//10533068
https://chromiumcodereview.appspot.com//10544109

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8655 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 13:05:22 +00:00
regis@google.com 858b662c84 Fix super call invocation (issue 2028).
Review URL: https://chromiumcodereview.appspot.com//10513008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8633 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 23:06:23 +00:00
zundel@google.com b6dbbbc0ec Disallow underscores in named formal parameters.
See issue http://code.google.com/p/dart/issues/detail?id=2493

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8631 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 22:30:16 +00:00
zundel@google.com ce34ba9949 Detect continue inside of case statement with no label
Review URL: https://chromiumcodereview.appspot.com//10536143

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8627 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 20:13:17 +00:00
brianwilkerson@google.com 93717a5f2b Fix for issue 3526
Review URL: https://chromiumcodereview.appspot.com//10533127

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8615 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 16:00:34 +00:00
scheglov@google.com 930a2f9c46 Report error if typedef references itself in type parameter bounds
R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8605 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 13:38:07 +00:00
zundel@google.com f52f8f68cf Fix for issue 1351 - Analyzer accepts non-multiline strings with newlines
Review URL: https://chromiumcodereview.appspot.com//10540133

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8601 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 10:50:21 +00:00
floitsch@google.com 8447920e11 Create an initial port.
Review URL: https://chromiumcodereview.appspot.com//10536118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8599 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 10:39:13 +00:00
scheglov@google.com c88461077a Issue 3528. Additional checks for 'case expressions'
http://code.google.com/p/dart/issues/detail?id=3528

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8573 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 20:21:34 +00:00
scheglov@google.com 405b72c292 Issue 3532. Report error if one unit included twice
http://code.google.com/p/dart/issues/detail?id=3532

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8562 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:38:51 +00:00
scheglov@google.com 152a35d268 Issue 3534. It is a compile-time error if a typedef refers to itself
http://code.google.com/p/dart/issues/detail?id=3534

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8561 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:31:57 +00:00
scheglov@google.com f50560b8ad Issue 3531. Don't allow using built-in identifier as import prefix
http://code.google.com/p/dart/issues/detail?id=3531

And couple other built-in/reserved issues.

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8558 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 18:05:20 +00:00
floitsch@google.com eb92af4080 Revert "Refactor Date implementation in VM."
Also revert "Round days-computation to get rid of daylight-savings differences."

This reverts commit 7542 and commit 8544.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8547 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 13:44:45 +00:00
ahe@google.com 91e2b7794c Resolution based tree-shaking.
Review URL: https://chromiumcodereview.appspot.com//10542073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8543 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 12:35:34 +00:00
floitsch@google.com 17de58fbaf Reapply "Refactor Date implementation in VM."
This reapplies a fixed version of commit 8533.
https://chromiumcodereview.appspot.com//10533068

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8542 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 12:04:36 +00:00
floitsch@google.com af0fbc6d5f Give static functions that have a getter a name.
This is necessary so we can use them in spawnFunction.

Fixes issue 3244.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8540 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 11:49:12 +00:00
zundel@google.com 6e0d2f61d2 Analyzer: finished triaging this round of co19 errors
Review URL: https://chromiumcodereview.appspot.com//10538088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8521 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 01:59:39 +00:00
sigmund@google.com c7f725749e co19+futures: fix status for changes in Future
Review URL: https://chromiumcodereview.appspot.com//10545116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8506 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 16:52:04 +00:00
scheglov@google.com 089bc27a16 Issue 3340. conflict of a library prefix and a name in the importing library should produce a compile error
http://code.google.com/p/dart/issues/detail?id=3340

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8500 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 16:01:21 +00:00
scheglov@google.com fea9c4703f Issue 3344. Support for 'U extends T' type variables
http://code.google.com/p/dart/issues/detail?id=3344

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8498 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:59:01 +00:00
scheglov@google.com db90871bc7 Issue 3404. Static & top level functions are constant
http://code.google.com/p/dart/issues/detail?id=3404

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8497 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:55:56 +00:00
scheglov@google.com ede473a09d Issue 3449. Enable default values for parameters in abstract and interface methods
http://code.google.com/p/dart/issues/detail?id=3449

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8494 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:51:51 +00:00
scheglov@google.com fe0261ee50 Issue 3477. Report error when built-in identifier used as type name
http://code.google.com/p/dart/issues/detail?id=3477

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8493 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:49:30 +00:00
brianwilkerson@google.com 25b1e95d8d Fix for issue 1335
Review URL: https://chromiumcodereview.appspot.com//10539075

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8490 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 15:05:36 +00:00
scheglov@google.com d5375c61be Issue 3307. Report error when built-in identifier used as type annotation
http://code.google.com/p/dart/issues/detail?id=3307

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8476 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-09 05:56:09 +00:00
zundel@google.com e088e83bb8 Triaged about 50% of new co19 errors for analyzer
Review URL: https://chromiumcodereview.appspot.com//10533072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8475 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 23:15:24 +00:00
zundel@google.com a85a5f420f In analyzer, catch use of continue and break in inappropriate places
(outside of a loop or in the case of break, with no referenced label)

See http://code.google.com/p/dart/issues/detail?id=1658
and http://code.google.com/p/dart/issues/detail?id=2441

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8467 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 21:24:17 +00:00
floitsch@google.com a1e41b060b Reapply "Remove deprecated classes and functions in Date."
This reapplies a fixed version of commit 8445.

Original CL: https://chromiumcodereview.appspot.com//10541050

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8455 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 17:32:18 +00:00
ngeoffray@google.com 5e9caaa372 Only generate assert in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10540052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8430 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 10:21:22 +00:00
ahe@google.com 28b003a8db Update co19 status.
Review URL: https://chromiumcodereview.appspot.com//10545081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8426 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 09:29:38 +00:00
ahe@google.com 9c614a38b7 Update co19 status.
Review URL: https://chromiumcodereview.appspot.com//10536068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8425 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 08:41:58 +00:00
ahe@google.com 88d185eed6 Update co19 status.
Review URL: https://chromiumcodereview.appspot.com//10542071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8424 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 08:24:25 +00:00
ahe@google.com fb6fae0acf Update co19.
Review URL: https://chromiumcodereview.appspot.com//10539061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8423 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 08:08:58 +00:00
ahe@google.com 5c20370da8 Update co19 status.
Review URL: https://chromiumcodereview.appspot.com//10537070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8421 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 07:41:03 +00:00
ahe@google.com 16feabcfc6 Update co19 to revision 290.
Review URL: https://chromiumcodereview.appspot.com//10540023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8420 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 07:32:19 +00:00
zundel@google.com 10d6c4d932 Makes method shadowing a getter or setter or vice versa a compile time error.
See issue http://code.google.com/p/dart/issues/detail?id=973

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8410 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 22:22:24 +00:00
scheglov@google.com b60669264f Issue 3182. When TypeNode element found, but it is not Type, report only this error
http://code.google.com/p/dart/issues/detail?id=3182

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8348 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 16:32:18 +00:00
brianwilkerson@google.com 4eaf3d1cdf Fix for issue 1399 (and minor error message clean-up)
Review URL: https://chromiumcodereview.appspot.com//10541018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8338 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:51:21 +00:00
scheglov@google.com b5142cdb20 Issue 3268. Support for replacing 'assert' statement with 'assert' function
http://code.google.com/p/dart/issues/detail?id=3268

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8290 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 16:08:09 +00:00
brianwilkerson@google.com c8cb519a31 Fix for issues 2380 and 2381
Review URL: https://chromiumcodereview.appspot.com//10515012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8283 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:41:52 +00:00
hausner@google.com 96b9348764 co19 triage
Add co19 issue number.

TBR=srdjan
Review URL: https://chromiumcodereview.appspot.com//10519018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8270 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 23:16:08 +00:00
ahe@google.com 62512c93c2 Implement super store.
Review URL: https://chromiumcodereview.appspot.com//10444138

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8201 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 16:12:47 +00:00
hausner@google.com f15f987d1b If a test does not fail, it might pass.
Need to figure out why these tests fail locally on my box, but
pass on buildbot.
Review URL: https://chromiumcodereview.appspot.com//10451104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8179 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-31 23:03:31 +00:00