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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2737593002: Add support for parsing #void with Fasta. (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index ce6741a54c27894336570acc8b8999bfa5f3b6d1..25c4f4f2fe5d9c164e95a137f63b9ba0482c645e 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -2955,6 +2955,10 @@ class Parser {
listener.handleOperator(token);
listener.endLiteralSymbol(hashToken, 1);
return token.next;
+ } else if (identical(token.stringValue, 'void')) {
+ listener.handleSymbolVoid(token);
+ listener.endLiteralSymbol(hashToken, 1);
+ return token.next;
} else {
int count = 1;
token = parseIdentifier(token, IdentifierContext.literalSymbol);
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698