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

Unified Diff: lib/compiler/implementation/scanner/scanner.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/scanner.dart
diff --git a/lib/compiler/implementation/scanner/scanner.dart b/lib/compiler/implementation/scanner/scanner.dart
index c6bd646a8915de97e973c6933c32068591a43b28..da9911a6f766365573597ef5b8d5be93a6fbc29f 100644
--- a/lib/compiler/implementation/scanner/scanner.dart
+++ b/lib/compiler/implementation/scanner/scanner.dart
@@ -655,6 +655,8 @@ class AbstractScanner<T extends SourceString> implements Scanner {
int tokenizeIdentifier(int next, int start, bool allowDollar) {
bool isAscii = true;
+
+ // TODO(aprelev@gmail.com): Remove deprecated Dynamic keyword support.
bool isDynamicBuiltIn = false;
if (next === $D) {
@@ -693,7 +695,7 @@ class AbstractScanner<T extends SourceString> implements Scanner {
if (start == byteOffset) {
return error(const SourceString("expected identifier"));
} else if (isDynamicBuiltIn) {
- appendKeywordToken(Keyword.DYNAMIC);
+ appendKeywordToken(Keyword.DYNAMIC_DEPRECATED);
} else if (isAscii) {
appendByteStringToken(IDENTIFIER_INFO, asciiString(start, 0));
} else {

Powered by Google App Engine
This is Rietveld 408576698