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

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

Issue 427603002: Properly handle "#void" in analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: 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 efacb54f998e980c8525a23cfe78ab0202c29525..df795fa7b8cac6165398fc42f51417f5b6e795f1 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
@@ -5698,6 +5698,8 @@ public class Parser {
}
} else if (currentToken.isOperator()) {
components.add(getAndAdvance());
+ } else if (tokenMatchesKeyword(currentToken, Keyword.VOID)) {
+ components.add(getAndAdvance());
} else {
reportErrorForCurrentToken(ParserErrorCode.MISSING_IDENTIFIER);
components.add(createSyntheticToken(TokenType.IDENTIFIER));

Powered by Google App Engine
This is Rietveld 408576698