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
lrn@google.com
42f353fad1
Patch methods in classes.
...
Add math library in corelib/unified. Location subject to change.
Made _Random's implementation external and patched it to use JS random.
Made "external" marking acually work.
Review URL: https://chromiumcodereview.appspot.com//10696147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9544 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 08:47:24 +00:00
lrn@google.com
9010ea745c
Add "external" prefix to methods and constructors.
...
This is expected to be added to the language specification, for allowing the specification of methods with externally bound implementations.
Review URL: https://chromiumcodereview.appspot.com//10697096
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9456 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 06:37:51 +00:00
lrn@google.com
d1da93a393
Reapply "Make patch file import declarations apply to the patched library too."
...
This reapplies r9346 with the following fix:
Adds #library tag to tests containing #import.
The test web-driver tries to source the file if it doesn't contain
a #library declaration, which isn't valid if it contains #import.
R=floitsch
Review URL: https://chromiumcodereview.appspot.com//10698096
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9401 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 12:02:28 +00:00
lrn@google.com
b5ce02776b
Revert "Make patch file import declarations apply to the patched library too."
...
This reverts commit r9346.
TBR=floitsch
Review URL: https://chromiumcodereview.appspot.com//10704080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9354 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 14:25:50 +00:00
lrn@google.com
c86ce92f07
Make patch file import declarations apply to the patched library too.
...
Add a math library and apply patching to that, instead of to the web library.
We still have a default Math class with the same functionality, which isn't patched.
Review URL: https://chromiumcodereview.appspot.com//10694067
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9346 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 13:01:15 +00:00
lrn@google.com
642b7d8a05
Revert "Revert "First step towards having patch files for generic libraries.""
...
This reapplies r9246 without the (known) bugs.
Review URL: https://chromiumcodereview.appspot.com//10689063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9282 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 09:04:42 +00:00
lrn@google.com
83ce2f9f6e
Revert "First step towards having patch files for generic libraries."
...
This reverts commit r9246.
TBR: floitsch
Review URL: https://chromiumcodereview.appspot.com//10689038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9249 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 13:49:13 +00:00
lrn@google.com
1fad321449
First step towards having patch files for generic libraries.
...
As proof of concept, it patches a non-functional htmlEscape from web.dart.
Still has lots of restrictions:
- Only loads a normal library (no syntax extension to mark patches as
separate from additions). Assumes every element is a patch.
- Only handles top-level functions (probably won't handle getters/setters
or constructors), and not classes.
- Doesn't check that the patched function is marked external (no syntax for
that in the spec yet, doesn't even require it to be abstract).
- Doesn't check that the signature of the patch function matches the original
function.
- Probably won't work for 'coreimpl', as loaded from 'js_helper', since it's not
loaded using the 'dart:' scheme.
Review URL: https://chromiumcodereview.appspot.com//10689036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9246 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 12:32:40 +00:00
podivilov@google.com
c3977d7b22
Get rid of DOMWrapperBase and DOMTypeBase.
...
These types are not needed anymore.
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10659033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9242 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 10:21:25 +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
lrn@google.com
cadba87302
Implement 'as' operator.
...
This is a quick implementation with room for improvement.
It might work.
Review URL: https://chromiumcodereview.appspot.com//10540048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9109 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:23:50 +00:00
johnniwinther@google.com
77f7b64611
Scanner can include comments in the token stream.
...
includeComments option argument added to the ByteArrayScanner. default is false.
Test of charOffset, charLength invariants on scanner output added.
Calls to beginToken() moved to fix invalid Token.charOffset values for string interpolations.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10539021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9059 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 10:57:25 +00:00
antonm@google.com
f8f5363fc4
New treatment of native methods.
...
R=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10558023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8980 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 14:37:42 +00:00
ahe@google.com
17048b69fa
Missing test from CL 10544173.
...
Review URL: https://chromiumcodereview.appspot.com//10584011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8889 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 07:29:13 +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
ahe@google.com
9f1488c21c
Update partial parser and scanner to be able to skip expressions like "new Map<S, T>()".
...
Review URL: https://chromiumcodereview.appspot.com//10544173
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8720 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 13:43:46 +00:00
floitsch@google.com
b5acd09f81
Fix most warnings and other minor cleanups.
...
Review URL: https://chromiumcodereview.appspot.com//10557003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8719 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 13:26:35 +00:00
antonm@google.com
aaef8e92dd
Properly parse > in end of types.
...
R=ahe@google.com ,smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10540073
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8658 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 13:40:22 +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
floitsch@google.com
c046c899a0
Revert "Remove deprecated classes and functions in Date."
...
This reverts commit 8445.
Review URL: https://chromiumcodereview.appspot.com//10532068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8446 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 16:31:55 +00:00
floitsch@google.com
2c2ee2000f
Remove deprecated classes and functions in Date.
...
Review URL: https://chromiumcodereview.appspot.com//10541050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8445 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 16:01:00 +00:00
antonm@google.com
fe7c58b3a5
Properly parse [].
...
R=ahe@google.com
Review URL: https://chromiumcodereview.appspot.com//10519011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8314 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:05:46 +00:00
ngeoffray@google.com
2cb4416340
Use the typedef arity to know how to invoke a closure given by the dom.
...
Review URL: https://chromiumcodereview.appspot.com//10441071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
ahe@google.com
f5791815d6
Parameterize WorkItem.run.
...
Review URL: https://chromiumcodereview.appspot.com//10441014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7938 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 07:49:19 +00:00
ahe@google.com
3f6cfc1b98
Revert "Parameterize WorkItem.run."
...
This reverts commit 7912.
Review URL: https://chromiumcodereview.appspot.com//10417054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7913 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 16:25:26 +00:00
ahe@google.com
ab06daa15f
Parameterize WorkItem.run.
...
Review URL: https://chromiumcodereview.appspot.com//10414081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7912 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 16:10:15 +00:00
ahe@google.com
fd61a77669
Prepare to have more than one universe.
...
Review URL: https://chromiumcodereview.appspot.com//10377166
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7795 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 12:05:23 +00:00
ahe@google.com
e16b9136b4
Don't report an internal error if attempting to compile a file that doesn't exist.
...
Review URL: https://chromiumcodereview.appspot.com//10382195
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7682 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-16 12:35:26 +00:00
ahe@google.com
3387c8c596
Diagnose compiler crashes.
...
Review URL: https://chromiumcodereview.appspot.com//10392104
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7661 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 16:40:42 +00:00
lrn@google.com
7cdd8a8c82
Make a single labeled statement hold all its labels.
...
Previously a single labeled statement only held one label, and nested labeled
statements was used for multiple labels.
Review URL: https://chromiumcodereview.appspot.com//10389113
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7602 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 11:02:56 +00:00
lrn@google.com
4fab863b7c
Accept more labels per switch case.
...
This matches the new, disambiguated switch syntax.
Review URL: https://chromiumcodereview.appspot.com//10387080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7601 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 10:36:43 +00:00
lrn@google.com
8a73514c3d
Add a "Label" Node around an Identifier that is being used as a label.
...
This is in preparation for rewriting switch to match the "new" switch grammar.
I need to make a block information structure for switch statements, and I don't
want to do that on an obsolete structure.
Review URL: https://chromiumcodereview.appspot.com//10392024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7485 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-10 12:23:45 +00:00
ahe@google.com
7bb512670a
Remove unneeded types.
...
Review URL: https://chromiumcodereview.appspot.com//10332072
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7458 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 13:00:20 +00:00
ahe@google.com
b8c5fb9177
Don't parse factory keyword as a type.
...
Review URL: https://chromiumcodereview.appspot.com//10382084
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7457 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 12:40:05 +00:00
floitsch@google.com
5780b25f60
Sort the output (for now just the classes and instance members).
...
Review URL: https://chromiumcodereview.appspot.com//10310040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7447 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-09 10:55:27 +00:00
ngeoffray@google.com
b72612d64e
Revert r7368: parseMember should only be used for partial parsing.
...
Review URL: https://chromiumcodereview.appspot.com//10378030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7370 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 10:28:19 +00:00
ngeoffray@google.com
6686399005
Fix return type spotted by VM on checked mode.
...
Review URL: https://chromiumcodereview.appspot.com//10384032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7369 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 09:57:52 +00:00
ngeoffray@google.com
a96cfadaa1
Remove warning that 'facotry' is not a type annotation.
...
Review URL: https://chromiumcodereview.appspot.com//10332032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7368 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 09:49:57 +00:00
lrn@google.com
4122603f1c
Fix small problems with precedence of cascades.
...
Conditional expressions didn't require their branches to be
expressionWithoutCascade.
Assignments didn't bind correctly relative to cascades. Added a flag
to be able to handle them both as expression and expressionWithoutCascade.
Review URL: https://chromiumcodereview.appspot.com//10236005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7055 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:00:20 +00:00
sigmund@google.com
f1d72ac4f9
rename _tests.dart to _test.dart
...
Review URL: https://chromiumcodereview.appspot.com//10154010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6984 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 00:23:45 +00:00
ahe@google.com
f85cc13819
Add some documentation to the parser.
...
Review URL: https://chromiumcodereview.appspot.com//10205015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6884 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 14:51:13 +00:00
ahe@google.com
9eac6a5748
Remove frogsh.
...
Review URL: https://chromiumcodereview.appspot.com//10164004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
lrn@google.com
4277b826ea
Fix bugs in cascade implementation.
...
Some token.next got lost at some point.
And tests weren't running.
Review URL: https://chromiumcodereview.appspot.com//10041020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6672 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 08:53:01 +00:00
kasperl@google.com
02ba487148
Fix remaining warnings.
...
R=floitsch@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10091048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6648 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:25:11 +00:00
kasperl@google.com
43ff9be2fa
Add extends clause to the type parameter for AbstractScanner.
...
This gets rid of a warning when using the result of calling utf8String inside the implementation.
R=ahe@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10091033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6627 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 12:09:41 +00:00
kasperl@google.com
192bc8795e
Minor fixes to remove some warnings.
...
R=ngeoffray@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9956171
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6624 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:26:25 +00:00
lrn@google.com
8531ffaa1e
Fix type warnings and a few other warnings, and probably even an error.
...
Mostly warnings introduced by cascade implementation.
Review URL: https://chromiumcodereview.appspot.com//10091028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6621 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:33:16 +00:00
floitsch@google.com
07024492b5
Many type fixes.
...
Review URL: https://chromiumcodereview.appspot.com//10001008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6576 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 13:58:20 +00:00
lrn@google.com
5b430d34c5
Implement cascaded calls.
...
Review URL: https://chromiumcodereview.appspot.com//9958009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6570 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:42:25 +00:00