Commit graph

376 commits

Author SHA1 Message Date
gbracha@google.com
6d58ce9bfe Revise spec to agree with implementations for meaning of getter/variable and setter references. While the actual difference were only in a few odd cases, the new text should also be clearer.
R=hausner@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33287 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 18:37:37 +00:00
gbracha@google.com
08eb68c466 Libraries can be private.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33050 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 02:42:23 +00:00
rmacnak@google.com
fd3d616818 Minor spec typos.
R=gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32564 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 18:07:02 +00:00
gbracha@google.com
0e10e686fc Tweak text to clarify that using atype variable in an expression in a static method is a compile time error.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31940 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-18 00:16:11 +00:00
gbracha@google.com
39b5ace1f8 Clarified use of const in for-in loop is illegal.
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31904 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 00:13:26 +00:00
gbracha@google.com
01e4d829f4 Correct oversight so that no warning is given if a class implements Function, has no call() method but declares its own noSuchMethod().
R=brianwilkerson@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31795 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 18:46:55 +00:00
gbracha@google.com
9cf58fbd7c Update spec version number to 1.1 for release.
Review URL: https://codereview.chromium.org//134523006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31715 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 22:08:23 +00:00
gbracha@google.com
49db6198af Clarify that part directives and headers can carry metadata.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31622 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 19:31:22 +00:00
gbracha@google.com
55021ce277 Change specification of @proxy to be compatible with implemementation.
R=brianwilkerson@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31433 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-02 22:14:50 +00:00
gbracha@google.com
be709f52ba Version 1.0. Mainly formatting corrections.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30211 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 23:05:52 +00:00
gbracha@google.com
78fe144713 Update spec for 0.8: Malformed types cause runtime errors for as, is and catch clauses, as well as checked mode subtype tests. Scripts main must be in exported namespace of library (can be exported, but import alone is not enough). Document effect of @proxy on typechecking. Metadata cannot include types.
Review URL: https://codereview.chromium.org//54903010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29775 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 22:18:32 +00:00
gbracha@google.com
b2c1255be8 Clarify that sttaic getters that pair with instance setters cause warnings even if they are implicit and vice versa.
Review URL: https://codereview.chromium.org//42513003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29227 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 00:43:19 +00:00
gbracha@google.com
7ba09adde9 Revert setters for final variables.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29131 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:54:53 +00:00
gbracha@google.com
413058d6a5 Correct rule for unqualified function invocations.
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28954 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:29:32 +00:00
gbracha@google.com
4e4087c426 Clarify that when a local variable hides a type before it is declared, it is stilla compile-time error, and that the VM has flexibility to report such errors at the declaration rather than the use.
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28896 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 23:11:58 +00:00
gbracha@google.com
47a546e035 Assert that override warnings for members for classes carry through to interfaces.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28890 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 22:42:55 +00:00
gbracha@google.com
1b850dd4ff It's an error if to instantiate a subclass of a malbounded type,or a type variable.
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28701 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 00:54:58 +00:00
gbracha@google.com
0d5b2c28ae Least upper bound fixes.
Review URL: https://codereview.chromium.org//27209004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28672 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 18:39:55 +00:00
gbracha@google.com
da96b74f08 Update spec to 0.7. Remove obsolete/redundant rules for local variable initialization. Remove restriction on const instance creation. Liberalize type promotion rules.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28589 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 16:37:42 +00:00
gbracha@google.com
c33559c2e8 Update spec to 0.7. Remove obsolete/redundant rules for local variable initialization. Remove restriction on const instance creation.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28552 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 20:56:55 +00:00
gbracha@google.com
df4b9e4a9c Make sure exports treat dart: libs specially just like imports.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28540 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 19:13:06 +00:00
gbracha@google.com
65077b32f4 Slight rewording of compile-time errors for switch cases, for clarity. No semantic change.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28418 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 21:17:24 +00:00
iposva@google.com
61f1c52eed - Fix typo in grammar.
R=gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28395 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 00:42:59 +00:00
gbracha@google.com
9ec531b2bb Allow distinction in typesetting between built-in identifierss and true keywords.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28393 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 00:11:51 +00:00
gbracha@google.com
5a7f24cb61 Use more-specific instead of subtyping for type promotion; extend definition of more-specific to include function types so that the change works.
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28335 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 23:33:05 +00:00
iposva@google.com
59611b2414 - Add the language specification to the repository.
R=dgrove@google.com, gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28332 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 22:43:18 +00:00