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

Unified Diff: runtime/vm/parser.cc

Issue 12016005: Remove support for legacy abstract declarations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 months 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/vm/dart_api_impl_test.cc ('k') | no next file » | 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 17229)
+++ runtime/vm/parser.cc (working copy)
@@ -31,8 +31,6 @@
"Warning on legacy map literal syntax (single type argument)");
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;
@@ -2867,14 +2865,6 @@
TRACE_PARSER("ParseClassMemberDefinition");
MemberDesc member;
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;
- }
if ((CurrentToken() == Token::kEXTERNAL) &&
(LookaheadToken(1) != Token::kLPAREN)) {
ConsumeToken();
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698