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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java

Issue 25940003: Issue 13510. Fix for parsing symbol literal with built-in identifiers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
index 6ee33f6284a63eee40e5bed23c0455a6f052dca2..3dd19f9550fa77a9e952e4b76d105438da98ddf1 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
@@ -5019,11 +5019,11 @@ public class Parser {
private SymbolLiteral parseSymbolLiteral() {
Token poundSign = getAndAdvance();
List<Token> components = new ArrayList<Token>();
- if (matches(TokenType.IDENTIFIER)) {
+ if (matchesIdentifier()) {
components.add(getAndAdvance());
while (matches(TokenType.PERIOD)) {
advance();
- if (matches(TokenType.IDENTIFIER)) {
+ if (matchesIdentifier()) {
components.add(getAndAdvance());
} else {
reportError(ParserErrorCode.MISSING_IDENTIFIER);
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698