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

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

Issue 10069006: Fix flaxy test issue for analysis parser found in r6414 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: 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 fb429e3d58656ab743066b751dd334f82fdcfd39..e6cccc443f6cd732bfaadd5f75318565596f357f 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -4169,7 +4169,7 @@ public class DartParser extends CompletionHooksParserBase {
return done(new DartSyntheticErrorIdentifier());
}
DartIdentifier identifier;
- if (expect(Token.IDENTIFIER)) {
+ if (expect(Token.IDENTIFIER) && ctx.getTokenString() != null) {
identifier = new DartIdentifier(ctx.getTokenString());
} else {
identifier = new DartSyntheticErrorIdentifier();
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698