Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Unified Diff: runtime/vm/parser.cc

Issue 11299121: Remove abstract from class members in dart libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | sdk/lib/core/comparable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 15207)
+++ runtime/vm/parser.cc (working copy)
@@ -35,6 +35,8 @@
"Warning on legacy getter syntax");
DEFINE_FLAG(bool, strict_function_literals, false,
"enforce new function literal rules");
+DEFINE_FLAG(bool, fail_legacy_abstract, false,
+ "error on explicit use of abstract on class members");
static void CheckedModeHandler(bool value) {
FLAG_enable_asserts = value;
@@ -2895,6 +2897,9 @@
current_member_ = &member;
if ((CurrentToken() == Token::kABSTRACT) &&
(LookaheadToken(1) != Token::kLPAREN)) {
+ if (FLAG_fail_legacy_abstract) {
+ ErrorMsg("illegal use of abstract");
+ }
ConsumeToken();
member.has_abstract = true;
}
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | sdk/lib/core/comparable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698