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

Unified Diff: lib/compiler/implementation/scanner/parser.dart

Issue 11021008: Added 'dynamic' keyword, so that 'Dynamic' can be deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
Index: lib/compiler/implementation/scanner/parser.dart
diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
index 4f4f5ddba2aba43b2f61400ae36a5585d69f63d0..49e47b4930bfee8734522d0e51acfb8da77c49f3 100644
--- a/lib/compiler/implementation/scanner/parser.dart
+++ b/lib/compiler/implementation/scanner/parser.dart
@@ -322,7 +322,11 @@ class Parser {
if (kind === KEYWORD_TOKEN) {
Keyword keyword = token.value;
String value = keyword.stringValue;
- return keyword.isPseudo || (value === 'Dynamic') || (value === 'void');
+ // TODO(aprelev@gmail.com): Remove deprecated Dynamic keyword support.
+ return keyword.isPseudo
+ || (value === 'dynamic')
+ || (value === 'Dynamic')
+ || (value === 'void');
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698