Commit Graph

3219 Commits

Author SHA1 Message Date
brianwilkerson@google.com deec248e91 Fix for issue 3783
Review URL: https://chromiumcodereview.appspot.com//10833012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9909 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 21:18:02 +00:00
antonm@google.com 74d17a16f9 dart2dart compiler support.
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9880 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 11:20:41 +00:00
hausner@google.com fdd91990f1 Implement cascade operator in VM
- Factoring out parsing of selectors
- Create temp variable holding the receiver of the cascade
  selectors
Review URL: https://chromiumcodereview.appspot.com//10796109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9857 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 17:20:49 +00:00
regis@google.com b86a40f48f Fix type checking of void type.
Fix library and tests accordingly.
Add new test.
Disable new test for dart2js.
Disable some now failing co19 tests (new issue 158 filed).
Hide internal VM String types from user (not complete).
Review URL: https://chromiumcodereview.appspot.com//10787021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9681 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 21:34:07 +00:00
regis@google.com dc96874999 Revert fix for type checking of void type, because some top level tests fail.
Review URL: https://chromiumcodereview.appspot.com//10784020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9673 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 19:05:38 +00:00
regis@google.com a8ceb243f6 Fix type checking of void type.
Fix library and tests accordingly.
Add new test.
Disable new test for dart2js.
Disable some now failing co19 tests (new issue 158 filed).
Hide internal VM String types from user (not complete).
Review URL: https://chromiumcodereview.appspot.com//10704216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9672 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 18:05:55 +00:00
johnniwinther@google.com 1274e083f5 Error produced for missing var, final, const or type on field declarations.
BUG=2997
TEST=tests/language/field_decl_missing_var_type_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9585 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 09:22:53 +00:00
floitsch@google.com 95847193aa Update status file.
Review URL: https://chromiumcodereview.appspot.com//10690141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9568 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:28:49 +00:00
floitsch@google.com 84fcfdce84 Don't box variables for closures that are assigned only once.
Fixes issue 4001.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9461 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 09:10:16 +00:00
ager@google.com 72b997b522 Reapply change to update dart2js operator equals semantics to follow the latest spec.
Changes since the version that was reverted are in patch set 2:

1. Fix one remaining dart2js test that relied on the old operator== behavior.

2. Fix type intersection operation to actually take null into account. Because of bounded types they should always use canBeNull.

R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9396 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 11:29:47 +00:00
ager@google.com 8bca3e8dcb Revert all the changes to equals operator. Causing buildbot trouble.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9357 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 15:39:14 +00:00
ager@google.com 6d5bb70430 Change dart2js to follow the new spec on the equality operator.
'null' is only equals to 'null' and nothing else. The user-defined
operator== is never called with null.

This also means that a 'a == null' and 'null == a' can always be
treated as a builtin when compiling to javascript.

Update the test expectations for co19. I will file co19 bugs about
updating the tests.

R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9348 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 13:38:25 +00:00
lrn@google.com b9cf01633f Throw a NullPointerException when throwing null.
BUG=2940

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9280 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 07:21:34 +00:00
brianwilkerson@google.com d86c0dc9f9 Fix for issues 3729 and 3523
Review URL: https://chromiumcodereview.appspot.com//10696056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9270 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 21:31:07 +00:00
zundel@google.com f0dac6bd73 Validate the target of break and continue statments from within a switch
Issue 3658 http://code.google.com/p/dart/issues/detail?id=3658

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9220 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 20:52:31 +00:00
whesse@google.com 5673b2b301 Add Path library and change test scripts, combined change.
Use Path for the filename and TestInformation.filename throughout test scripts.

Change test_suite.dart to use Path class.

Fix bug in join

Address comments.

Address comments

Address comments on Path library.

Add path library to dart:io.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9203 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 15:39:28 +00:00
zundel@google.com 74a356e682 Fixes the scope of case labels so that duplicate case labels are properly detected
Issue 2441 http://code.google.com/p/dart/issues/detail?id=2441

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9200 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 14:29:59 +00:00
johnniwinther@google.com 3fd74bb898 Various token issues fixed in the compiler
Review URL: https://chromiumcodereview.appspot.com//10697003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9199 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 13:33:26 +00:00
zundel@google.com 230d02406c When a variable name is used as a type, emit a warning, not an error
Issue 3474 http://code.google.com/p/dart/issues/detail?id=3474

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9171 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 14:21:37 +00:00
scheglov@google.com 5db61f2d72 Issue 3793. Fix for function expressions with a parameter of the same name
http://code.google.com/p/dart/issues/detail?id=3793

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9170 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 14:10:49 +00:00
zundel@google.com a492c159b8 Updated status of a failing test
Review URL: https://chromiumcodereview.appspot.com//10695007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9164 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 13:30:35 +00:00
ahe@google.com 2096714de0 Update status file and fix a "static inheritance" bug.
Review URL: https://chromiumcodereview.appspot.com//10703004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9156 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 10:44:21 +00:00
ahe@google.com 7b31e54ab7 Implement override checks.
First attempt committed as: https://code.google.com/p/dart/source/detail?r=9108

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9151 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:07:36 +00:00
antonm@google.com 38bf8c295b Revert "Implement override checks."
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9112 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:00 +00:00
ahe@google.com 7f2041bf11 Implement override checks.
Review URL: https://chromiumcodereview.appspot.com//10575033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9108 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 12:51:55 +00:00
brianwilkerson@google.com 8b400d2dd6 Fix for issue 3519
Review URL: https://chromiumcodereview.appspot.com//10660012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9083 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 20:02:48 +00:00
scheglov@google.com 02d0554f59 Issue 2477. Can not reference instance method from initializer
http://code.google.com/p/dart/issues/detail?id=2477

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9079 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 18:41:28 +00:00
scheglov@google.com f9b4e096e6 Issue 3748. Support for 'factory lib.Interface.namedConstructor()'
http://code.google.com/p/dart/issues/detail?id=2478

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9077 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 18:23:58 +00:00
zundel@google.com 67c0ec4bac Update status of stale co19 test to reflect current disposition
http://code.google.com/p/dart/issues/detail?id=2479

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9061 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 12:19:53 +00:00
brianwilkerson@google.com efc85a5bb9 Fix for issue 2437
Review URL: https://chromiumcodereview.appspot.com//10627020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9047 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 22:23:03 +00:00
zundel@google.com 7954d39977 Removes compile-time error from implementing the same interface more than once
This change allows inheritenance of the same interface with different parameterization,
but puts out a (currently non spec) warning if the resulting two interface types
are not assignable to each other.

Issue 2495 http://code.google.com/p/dart/issues/detail?id=2495
Issue 3803 http://code.google.com/p/dart/issues/detail?id=3803

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9035 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 16:39:00 +00:00
brianwilkerson@google.com 0f17eb68cd Remove lines for tests that have been removed
Review URL: https://chromiumcodereview.appspot.com//10639016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9034 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-22 16:18:40 +00:00
zundel@google.com 7671eef5d7 Redirecting constructors may not have a body. Fail with compile-time error
See issue 2474 http://code.google.com/p/dart/issues/detail?id=2474

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8982 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:18:07 +00:00
hausner@google.com 56bc7ca48a Fix stuff
Fix for issue 3781: don't hang on to deleted breakpoints (manually tested).
Fix for issue 3390: allow function names in all string interpolation expressions.
Review URL: https://chromiumcodereview.appspot.com//10603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8956 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 00:16:27 +00:00
brianwilkerson@google.com 197ee2abe6 Back out support for try-on; too early
Review URL: https://chromiumcodereview.appspot.com//10578051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8940 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 21:12:49 +00:00
brianwilkerson@google.com 0af8d013f6 Fix for issue 3756
Review URL: https://chromiumcodereview.appspot.com//10536223

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8938 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 20:17:15 +00:00
zundel@google.com cffb776ddf More support of library privacy for analyzer
See http://code.google.com/p/dart/issues/detail?id=2383

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8933 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 18:43:32 +00:00
zundel@google.com f12d219558 Revert "More support of library privacy for analyzer"
Review URL: https://chromiumcodereview.appspot.com//10578047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8931 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 18:16:17 +00:00
zundel@google.com cda927b48f More support of library privacy for analyzer
See http://code.google.com/p/dart/issues/detail?id=2383

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8926 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 17:40:56 +00:00
karlklose@google.com 4dfab6c028 Treat stack overflows specially when reporting unhandled exceptions.
Review URL: https://chromiumcodereview.appspot.com//10583033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8908 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 15:00:40 +00:00
brianwilkerson@google.com fc2e4153a1 Fix for issue 3541 and a small debugging improvement
Review URL: https://chromiumcodereview.appspot.com//10536211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8907 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 15:00:23 +00:00
floitsch@google.com a51dc25968 Make isUtc a getter, change some method names in Date. Weekday is now 1 based.
isUtc is now a getter.
Date.hours -> Date.hour
Date.minutes -> Date.minute
Date.seconds -> Date.second
Date.milliseconds -> Date.millisecond
Date.fromEpoch -> Date.fromMillisecondsSinceEpoch
Date.value -> Date.millisecondsSinceEpoch
Date.MON == 1 (up to Date.SUN == 7).

Fixes issue 3444, 1985.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8899 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 11:43:46 +00:00
scheglov@google.com 9613a3810a Issue 2382. Using a variable in a scope before its declared that shadows another variable
http://code.google.com/p/dart/issues/detail?id=2382

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8876 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 21:42:41 +00:00
scheglov@google.com 047d50d5f3 Issue 2373. 'v is Unknown' is compile-time warning, not error
http://code.google.com/p/dart/issues/detail?id=2373

...but 'v is Known<No, Paramaters>' is error.
Illogical, but so says the Spec.

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8872 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 21:26:38 +00:00
scheglov@google.com 89222499be Issue 2379. Can't use type variable with const constructor
http://code.google.com/p/dart/issues/detail?id=2379

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8865 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 19:48:54 +00:00
scheglov@google.com aab2cad8ec Issue 2378. Function expressions with no name should cause warnings, not errors
http://code.google.com/p/dart/issues/detail?id=2378

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8862 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 18:40:18 +00:00
scheglov@google.com 566b37f161 Issue 2376. Spec has no limitations on type of embedded expressions
http://code.google.com/p/dart/issues/detail?id=2376

This is co19 issue.
https://code.google.com/p/co19/issues/detail?id=149

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8858 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 16:31:14 +00:00
scheglov@google.com 4884ce068b Issue 1655. Check initializer values of const constructors
http://code.google.com/p/dart/issues/detail?id=1655

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8848 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 14:23:40 +00:00
regis@google.com 1207cc2010 Fix bad assert in static type propagation.
Review URL: https://chromiumcodereview.appspot.com//10578004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8828 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 22:42:39 +00:00
srdjan@google.com 718554fde4 Temporary fix for static type check elimination in new compiler. Enable tests.
Review URL: https://chromiumcodereview.appspot.com//10580003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8823 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 21:04:28 +00:00