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

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

Issue 2707933002: Tests for `void`.
Patch Set: More tests. 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
Index: pkg/front_end/lib/src/fasta/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index 01d30edeffe24a2644c90eefa5f1623c944d4348..3cb85ef924ef034cc4b257da23771e6c7ba7f662 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -226,8 +226,9 @@ class Listener {
void beginFunctionTypeAlias(Token token) {}
- void endFunctionTypeAlias(Token typedefKeyword, Token endToken) {
- logEvent("FunctionTypeAlias");
+ void endFunctionTypeAlias(
+ Token typedefKeyword, Token equals, Token endToken) {
+ logEvent("Typedef");
}
void beginMixinApplication(Token token) {}
@@ -550,10 +551,18 @@ class Listener {
logEvent("TryStatement");
}
- void endType(Token beginToken, Token endToken) {
+ void handleType(Token beginToken, Token endToken) {
logEvent("Type");
}
+ void handleNoName(Token token) {
+ logEvent("NoName");
+ }
+
+ void handleFunctionType(Token functionToken, Token endToken) {
+ logEvent("FunctionType");
+ }
+
void beginTypeArguments(Token token) {}
void endTypeArguments(int count, Token beginToken, Token endToken) {

Powered by Google App Engine
This is Rietveld 408576698