Index: pkg/analyzer/lib/src/fasta/ast_builder.dart |
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
index 63d3b1e9d28c38efc5e9ee4deb2dcbb6d4cb478b..67fca00847cf2a4dc05190eefa78833e15a60f26 100644 |
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart |
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
@@ -439,6 +439,15 @@ class AstBuilder extends ScopeListener { |
} |
@override |
+ void endYieldStatement(Token yieldToken, Token starToken, Token endToken) { |
+ debugEvent("YieldStatement"); |
+ assert(endToken.lexeme == ';'); |
+ Expression expression = pop(); |
+ push(ast.yieldStatement(toAnalyzerToken(yieldToken), |
+ toAnalyzerToken(starToken), expression, toAnalyzerToken(endToken))); |
+ } |
+ |
+ @override |
void handleNoVariableInitializer(Token token) { |
debugEvent("NoVariableInitializer"); |
} |