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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 10939027: Issue 5116. Support both 'dynamic' and 'Dynamic' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use DartParser.DYNAMIC_KEYWORD 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index 784348e271d0270d3c302fe43faadbe98c959e92..6b6f68339e243697f44a4e19e0b3689cf72a3af9 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -141,7 +141,11 @@ public class DartParser extends CompletionHooksParserBase {
private static final String ABSTRACT_KEYWORD = "abstract";
private static final String AS_KEYWORD = "as";
private static final String CALL_KEYWORD = "call";
- private static final String DYNAMIC_KEYWORD = "Dynamic";
+ public static final String DYNAMIC_KEYWORD = "dynamic";
+ // TODO(scheglov) remove "Dynamic" support after
+ // http://code.google.com/p/dart/issues/detail?id=5117
+ // http://code.google.com/p/dart/issues/detail?id=5118
+ public static final String DYNAMIC_KEYWORD_DEPRECATED = "Dynamic";
private static final String EXPORT_KEYWORD = "export";
private static final String EXTERNAL_KEYWORD = "external";
private static final String FACTORY_KEYWORD = "factory";
@@ -167,6 +171,7 @@ public class DartParser extends CompletionHooksParserBase {
ABSTRACT_KEYWORD,
AS_KEYWORD,
DYNAMIC_KEYWORD,
+ DYNAMIC_KEYWORD_DEPRECATED,
EXPORT_KEYWORD,
EXTERNAL_KEYWORD,
FACTORY_KEYWORD,
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698