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

Unified Diff: pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart

Issue 2706293003: Implement AstBuilder support for `void` keyword. (Closed)
Patch Set: Created 3 years, 10 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/analyzer/test/generated/parser_fasta_test.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/analyzer/ast_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
index f47af376b5a337d057633c3854eab95f62c2eddd..08f97bf726f49472f268fcda4b930791447a1652 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
@@ -1066,6 +1066,16 @@ class AstBuilder extends ScopeListener {
void endMember() {
debugEvent("Member");
}
+
+ @override
+ void handleVoidKeyword(Token token) {
+ debugEvent("VoidKeyword");
+ // TODO(paulberry): is this sufficient, or do we need to hook the "void"
+ // keyword up to an element?
+ handleIdentifier(token);
+ handleNoTypeArguments(token);
+ endType(token, token);
+ }
}
/// Data structure placed on the stack to represent a class body.
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698