Commit Graph

5559 Commits

Author SHA1 Message Date
ahe@google.com ad69f7919e Hack around aborting loop body.
Review URL: https://chromiumcodereview.appspot.com//9688016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5337 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 17:30:21 +00:00
ahe@google.com a73edef400 Fix ConstructorRedirectTest.
Review URL: https://chromiumcodereview.appspot.com//9663065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5326 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 15:50:32 +00:00
floitsch@google.com b6070fcda7 Compile time constants with fields.
Review URL: https://chromiumcodereview.appspot.com//9662037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5323 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 14:38:05 +00:00
ngeoffray@google.com 2a1d790472 Support for "a is Function".
Review URL: https://chromiumcodereview.appspot.com//9666006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5322 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 13:06:09 +00:00
ngeoffray@google.com 9d2221d841 An HStatic cannot necessarily be generate at use site.
Review URL: https://chromiumcodereview.appspot.com//9662043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5313 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 09:44:38 +00:00
ahe@google.com 20b17a2bf2 Repeated prefixes and parser fixes.
Review URL: https://chromiumcodereview.appspot.com//9663047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5299 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-11 13:18:25 +00:00
floitsch@google.com d1af7b73c3 Update status file.
Review URL: https://chromiumcodereview.appspot.com//9667034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5293 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-11 01:13:27 +00:00
floitsch@google.com cc1ac90f53 Update status file.
Review URL: https://chromiumcodereview.appspot.com//9664040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5292 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-11 01:01:26 +00:00
floitsch@google.com 6d852339e1 Update status file.
Review URL: https://chromiumcodereview.appspot.com//9665044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5291 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-11 00:48:20 +00:00
floitsch@google.com 405a8fd912 Update status file.
Review URL: https://chromiumcodereview.appspot.com//9668051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5290 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-11 00:05:18 +00:00
floitsch@google.com 3de0557174 Implement constant maps.
Review URL: https://chromiumcodereview.appspot.com//9665001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5289 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 23:06:56 +00:00
ngeoffray@google.com b66be72369 Unbreak web tests.
Review URL: https://chromiumcodereview.appspot.com//9662038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5288 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 22:12:50 +00:00
ngeoffray@google.com 1928b287e7 When importing a library without a prefix, add the elements from the element map instead of the list of elements. The element map contains the abstract fields, whereas the list of elements contain the getter and the setter.
Review URL: https://chromiumcodereview.appspot.com//9662035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5287 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 21:59:40 +00:00
ahe@google.com 045fbefda7 Update test status and fix a typo.
Review URL: https://chromiumcodereview.appspot.com//9662033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5286 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 20:15:47 +00:00
ngeoffray@google.com 6a6b93b94f Fix bot.
Review URL: https://chromiumcodereview.appspot.com//9664038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5279 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 09:55:25 +00:00
mattsh@google.com e13b59e7cf Revert "Revert the revert."
This reverts commit 6f2615a9e5162ccb5b678a924d5d11ecdadbfff8.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5272 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 00:17:14 +00:00
zundel@google.com f98d82c284 Update analysis to support adjacent string literals
http://code.google.com/p/dart/issues/detail?id=2079

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5255 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:44:08 +00:00
srdjan@google.com 192565d7a7 BoolTest passes in checked mode (throws TypeError-s correctly). Fix buildbot.
Review URL: https://chromiumcodereview.appspot.com//9669011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5252 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:34:14 +00:00
srdjan@google.com d9e25fbd25 Added logical op tests.
Review URL: https://chromiumcodereview.appspot.com//9669007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5249 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:14:33 +00:00
mattsh@google.com 17cf3623f4 Revert the revert.
This reverts commit 738ecebb4a1719beda41c17c994bb7b60c4791f7.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5248 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:05:25 +00:00
zundel@google.com 703442f3bb Annotates some more tests for static type warnings
Review URL: https://chromiumcodereview.appspot.com//9664004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5247 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 19:22:24 +00:00
regis@google.com e05a6a04ba Fix type checks that wrongly ignored malformed types.
Fix corresponding test.
Fix comment in gypi file.
Fix undeclared type in stream_util.dart.
Review URL: https://chromiumcodereview.appspot.com//9649010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5243 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 18:14:02 +00:00
zundel@google.com 197c95f1cb Some use of the new @static-clean and /// annotations in shared tests
I'm hoping these will be non-controversial for starters.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5237 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 16:26:09 +00:00
zundel@google.com b9fc839bcc Change string used to annotate static type issues to 'static type warning' in multitest
Gilad requested we update the annotation used in multitests to reflect
the terminology used in the Dart specification.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5233 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 14:01:03 +00:00
ngeoffray@google.com fc1786115b Also create abstract fields for top-level getters and setters.
Review URL: https://chromiumcodereview.appspot.com//9655024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5232 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 13:50:01 +00:00
zundel@google.com e314d7b66d Removed unnecessary VMOptions line from AssignStaticTypeTest
Review URL: https://chromiumcodereview.appspot.com//9651034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5229 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 12:23:12 +00:00
kasperl@google.com c115732065 Update dartc expectations.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5226 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 10:01:10 +00:00
kasperl@google.com 3411e30306 Add support for implicitly concatenating adjacent string literals.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5224 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:43:36 +00:00
ngeoffray@google.com fe0f43a9fa Support for loops without conditions.
Review URL: https://chromiumcodereview.appspot.com//9657003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5222 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:28:47 +00:00
ngeoffray@google.com 843445530e Lookup super scope after looking up lexical scope.
Review URL: https://chromiumcodereview.appspot.com//9657006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5221 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:28:35 +00:00
kasperl@google.com 08dc38774b Fix broken expectations.
I messed up my first attempt. This seems better.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5220 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:05:36 +00:00
kasperl@google.com 3505dceee6 Update test expectations to match reality.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5218 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 08:49:34 +00:00
mattsh@google.com 51fe0dab31 revert prior submit
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5216 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 04:04:27 +00:00
mattsh@google.com c3a5ab0129 remove node.js dependency by running the frog compiler in
DumpRenderTree instead of on node.js

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5207 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 00:57:29 +00:00
zundel@google.com aad4709de0 New test exposes some bugs in the static analysis (dartc) engine on assignment problems
https://code.google.com/p/dart/source/detail?r=4963

Original review:
http://codereview.chromium.org/9581032/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5206 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 00:49:24 +00:00
zundel@google.com 28595b885e Multitest annotations now accept multiple annotations on one line.
Many times a test case involves a static type warning for the
static analyzer and a dynamic type error for the VM or dart
compiled to JS, but not always.  Thus, this change introduces
the annotations as allowing multiple outcomes for a test.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5191 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 19:33:22 +00:00
ahe@google.com ca71bdcc4d Introduce element categories and move resolver towards being more compositional.
This also improves handling of super.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5184 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 18:36:16 +00:00
ahe@google.com 44c6dae74f Implement the compiler API and use it in frog_leg.dart.
Review URL: https://chromiumcodereview.appspot.com//9639012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5177 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 16:41:20 +00:00
jmesserly@google.com 4cbd0a8a8e fix #resource tag in browser tests. Now ResourceTest passes :)
Review URL: https://chromiumcodereview.appspot.com//9448001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5166 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 12:38:21 +00:00
ngeoffray@google.com e90d0dd1e8 Cases in a switch introduce a new scope.
Review URL: https://chromiumcodereview.appspot.com//9619028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5154 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 08:51:13 +00:00
zundel@google.com 7f8a57919b Specify the types for Element.classes, Element.elements and Node.nodes
Previously these lines gave type errors in dartc, but now they pass
without warnings.

b/5392897

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5136 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 23:02:08 +00:00
ahe@google.com 0f2464480b Implement prefixes in NewExpression.
Review URL: https://chromiumcodereview.appspot.com//9567041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5134 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 22:14:46 +00:00
ahe@google.com 0f63c54fcd Resolve constructors with type arguments.
Review URL: https://chromiumcodereview.appspot.com//9600059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5131 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:46:44 +00:00
srdjan@google.com 97fae9f4bd Add more const tests.
Review URL: https://chromiumcodereview.appspot.com//9608008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5129 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:32:59 +00:00
srdjan@google.com 25b3c2feeb Implement '==', '!=' and instanceof (without code generation).
Review URL: https://chromiumcodereview.appspot.com//9615025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5123 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:12:29 +00:00
ngeoffray@google.com 3a8eeb89db A local may be an unnamed closure. Make sure we emit a name for them.
Review URL: https://chromiumcodereview.appspot.com//9619009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5102 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 16:18:00 +00:00
mattsh@google.com d8af601ce4 removed unused 'prefix' line from status files
Review URL: https://chromiumcodereview.appspot.com//9621003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5101 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 16:10:57 +00:00
antonm@google.com 216dae7261 Remove test suppressions for test which are passing now.
StyleSheetList.item is obvious.  I am more surprised with isolate test started to pass.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5096 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 14:50:23 +00:00
ngeoffray@google.com d77308a444 Skip non-client tests on legium.
Review URL: https://chromiumcodereview.appspot.com//9623001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5089 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 13:50:11 +00:00
ngeoffray@google.com ccac62acad Introduce the TYPEDEF element, and use it in order to catch passing closures to the DOM. I make the assumption that the dom/html libraries will be sufficiently typed.
Review URL: https://chromiumcodereview.appspot.com//9618053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5078 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 10:49:16 +00:00