Commit Graph

3219 Commits

Author SHA1 Message Date
ahe@google.com d63c5f149e Update co19 status file based on Karl's recent changes.
Review URL: https://chromiumcodereview.appspot.com//10919284

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12366 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 07:44:33 +00:00
ahe@google.com db49e3386f Update analyzer status file
Review URL: https://chromiumcodereview.appspot.com//10910272

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12365 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 07:30:31 +00:00
ahe@google.com ceed21edaf Update co19 to r337.
Review URL: https://chromiumcodereview.appspot.com//10915275

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12363 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 06:46:13 +00:00
karlklose@google.com b8e93b6c5a Convert static error to warning for calls to nonexisting toplevel methods, getters and setters.
This also fixes an issue with calling nonexisting static getters/setters when an abstract field was defined.

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12361 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 05:29:22 +00:00
hausner@google.com 731f692895 Get rid of #resource directive in VM
Review URL: https://codereview.chromium.org//10918226

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12358 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 22:25:09 +00:00
brianwilkerson@google.com a041d3ac77 Part 1 of failing test triage
Review URL: https://codereview.chromium.org//10918230

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12355 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 21:39:32 +00:00
scheglov@google.com ea65bbb961 Issue 3553. Stop treating static final variables as constants
http://code.google.com/p/dart/issues/detail?id=3553
http://code.google.com/p/dart/issues/detail?id=3476

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12336 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 15:49:07 +00:00
brianwilkerson@google.com cd57835f8f Add built-in identifiers 'library', 'import', 'export' and 'part' (issue 5120)
Review URL: https://codereview.chromium.org//10919266

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12335 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 15:27:51 +00:00
kasperl@google.com 1b994e881f Change RegExp constructor to insist on proper named optional parameters.
R=bak@google.com,lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12329 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 14:00:32 +00:00
kasperl@google.com d1da3ed908 Re-land r12289.
Looks like Johnni has fixed the dartdoc issues.

R=iposva@google.com,hausner@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12321 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 12:37:00 +00:00
ngeoffray@google.com e777ed57fd Only allow 'void' as a return type.
Review URL: https://codereview.chromium.org//10908238

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12318 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 11:55:02 +00:00
kasperl@google.com 997e534c28 Change Duration to take proper named optional parameters.
R=bak@google.com,lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12314 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 11:17:31 +00:00
ngeoffray@google.com 14129983bc Check boolean conversion in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10905235

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12312 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 11:05:55 +00:00
hausner@google.com 08893af550 Revert change 12289
Will resubmit tomorrow. Dartc and Editor need to cleanup static finals.
Review URL: https://codereview.chromium.org//10928169

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12291 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 00:22:12 +00:00
hausner@google.com b740a3266f Stop treating finals as const
Toplevel final variables and static final fields are no longer
considered compile-time constants.
Review URL: https://codereview.chromium.org//10918203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12289 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 00:03:16 +00:00
brianwilkerson@google.com 578208a363 Clean up many tests marked as skipped or flaky (issue 5064)
Review URL: https://chromiumcodereview.appspot.com//10928150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12272 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 17:30:09 +00:00
ngeoffray@google.com 7e081e5e1e Fix for issue 4921: ad the generic type info to a List when we create it.
Review URL: https://chromiumcodereview.appspot.com//10905234

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12260 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 12:44:53 +00:00
ngeoffray@google.com b2b57490f9 Runtime support for the new parameter specification.
Review URL: https://chromiumcodereview.appspot.com//10911211

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12258 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 12:01:17 +00:00
jwren@google.com e542b22579 Marked three dart2js co19 tests as OK to fail.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12236 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 07:13:30 +00:00
kasperl@google.com 6acb4e8c72 Stop treating final as const in dart2js.
R=iposva@google.com,ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12235 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 07:02:14 +00:00
kasperl@google.com 55140fd125 Remove support for operator negate and replace occurrences with unary
operator -.

In the VM, I have disabled the operator negate support in the parser but I
have not removed the keyword because the token is used in quite a few other
places.

R=ahe@google.com,iposva@google.com,hausner@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12233 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 05:29:03 +00:00
aprelev@gmail.com 6f95045bda Allow catch part to be optional as in try {} on T [catch (x[,y])] {}
BUG=5016
TEST=co19/Language/03_Overview/03_Overview_A01_t02

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12232 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 01:23:58 +00:00
hausner@google.com a32a698c6f Support new library/import syntax
This change simply adds new syntax support for the functionality we
currently have in the VM.

- Support for library and import, import-as.
- Still to do: show/hide combinators, export, library parts.
Review URL: https://chromiumcodereview.appspot.com//10928121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12216 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 20:10:56 +00:00
regis@google.com ab967e15c0 Fix issue with optional named parameters.
Update tests.
Review URL: https://chromiumcodereview.appspot.com//10911217

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12214 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 18:44:16 +00:00
brianwilkerson@google.com 2d80d699b1 Convert throw from a statement to an expression (issue 4872)
Review URL: https://chromiumcodereview.appspot.com//10913197

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12212 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 18:21:24 +00:00
bak@google.com d3b5cfba18 First partial step at removing interfaces in libraries.
- Changes interfaces without default implmenetations to abstract class.
  - Changed final fields in interfaces to getters.
  - Changed dart_analyzer to allow methods with empty bodies in abstract class.
  - Updated the co19 status file since two tests now are passing.
Review URL: https://chromiumcodereview.appspot.com//10917187

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12201 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 14:57:09 +00:00
ngeoffray@google.com d50ea302af Support check mode for statics.
Review URL: https://chromiumcodereview.appspot.com//10908143

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12187 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 12:02:48 +00:00
lrn@google.com 76d734500a Update dartc test expectations.
Fix bug in test that assumes NoSuchMethodError is an Exception.

TBR=johnniwinter@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12176 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:27:42 +00:00
ahe@google.com 27f7285765 Reject non-ASCII identifiers.
Also change error handling in the scanner.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12175 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:17:08 +00:00
lrn@google.com 855fc6874b Fixed VM co19 expectations wrt. NoSuchMethodError.
TBR=johnniwinter@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12174 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 10:08:49 +00:00
lrn@google.com f52c24b62f Rename NoSuchMethodException to NoSuchMethodError.
Moved NoSuchMethodError to errors.dart.
No changes in co19 tests, but test status updated.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12172 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:52:25 +00:00
ahe@google.com dfb76aedce Update co19 to r336.
Review URL: https://chromiumcodereview.appspot.com//10905206

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12160 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 07:02:09 +00:00
ahe@google.com 2e9f67c3ca Parse methods named 'get' or 'set'.
Review URL: https://chromiumcodereview.appspot.com//10913153

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12143 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 18:42:41 +00:00
ahe@google.com 50286e535e Improve handling of built-in identifiers.
Review URL: https://chromiumcodereview.appspot.com//10917170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12132 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 17:08:19 +00:00
antonm@google.com a1770a8bbd Sync .gitignore with the corresponding svn properties.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12122 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 15:44:25 +00:00
ahe@google.com 3bd4e97cb8 Parse and resolve new syntax for named parameters.
Review URL: https://chromiumcodereview.appspot.com//10907129

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12114 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 14:06:56 +00:00
ahe@google.com 80da232870 Remove duplicated status lines.
Review URL: https://chromiumcodereview.appspot.com//10916199

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12099 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-09 22:17:33 +00:00
ahe@google.com d4c0fa0252 Triage co19 bugs.
Review URL: https://chromiumcodereview.appspot.com//10914170

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12098 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-09 22:02:49 +00:00
ahe@google.com b9efd39f21 Triage co19 bugs.
Review URL: https://chromiumcodereview.appspot.com//10928073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12097 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-09 21:48:20 +00:00
ahe@google.com 64d3d2e5c8 Triage co19 failures.
Review URL: https://chromiumcodereview.appspot.com//10928070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12094 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-09 15:43:48 +00:00
ahe@google.com c8b9d12a5a Update dart2js test status
Review URL: https://chromiumcodereview.appspot.com//10911167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12086 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-08 08:37:33 +00:00
ahe@google.com 66ab655be9 Use proper status file syntax
Review URL: https://chromiumcodereview.appspot.com//10913132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12035 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 13:47:37 +00:00
ahe@google.com 4f476fd7cb Update dart2js co19 status for checked mode.
Review URL: https://chromiumcodereview.appspot.com//10908140

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12031 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 13:12:31 +00:00
ahe@google.com 06a13aa0e5 Update co19 status for dart2js.
Review URL: https://chromiumcodereview.appspot.com//10908139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12029 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:57:48 +00:00
lrn@google.com be2453bae1 Removed/moved "assert" function to core_patch.dart as "_assert".
Changed resolution of assert to only accepting assert in a statement position.
Added more assert tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12026 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:45:02 +00:00
ngeoffray@google.com 94f1c2ed10 Change our 'is int' check to use Math.floor instead of a smi check.
Review URL: https://chromiumcodereview.appspot.com//10912147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
ahe@google.com 5c42dd9e90 Update co19 to r333.
Review URL: https://chromiumcodereview.appspot.com//10917133

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12016 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:51:33 +00:00
lrn@google.com 4e8426a5b4 Remove some exceptions from mock.dart.
This is the first step towards removing mock.dart and all non-patch files
from dart2js.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12012 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 10:52:39 +00:00
regis@google.com 7cc84c2892 Implement new optional parameters syntax in the vm (issue 4290).
Provide --reject_named_argument_as_positional flag to ease transition to new
syntax (default is false).
Add tests.
Review URL: https://chromiumcodereview.appspot.com//10910119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12004 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 01:13:27 +00:00
ngeoffray@google.com 7ef6d7aac2 Re-apply with a few fixes http://codereview.chromium.org/10913081/: Fix resolution of type parameters in static context, and the use of type parameters in closures.
Review URL: https://chromiumcodereview.appspot.com//10910098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11966 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:31:30 +00:00