| 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 68f28a049251ef0f1592fe93f6fbaae3e3ab6795..3d451f358e887cac26258b54737b2c047c6ac1c5 100644
|
| --- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
|
| +++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
|
| @@ -404,6 +404,21 @@ class AstBuilder extends ScopeListener {
|
| }
|
|
|
| @override
|
| + void endWhileStatement(Token whileKeyword, Token endToken) {
|
| + debugEvent("WhileStatement");
|
| + Statement body = pop();
|
| + ParenthesizedExpression condition = pop();
|
| + pop(); // continue target
|
| + pop(); // break target
|
| + push(ast.whileStatement(
|
| + toAnalyzerToken(whileKeyword),
|
| + condition.leftParenthesis,
|
| + condition.expression,
|
| + condition.rightParenthesis,
|
| + body));
|
| + }
|
| +
|
| + @override
|
| void handleNoVariableInitializer(Token token) {
|
| debugEvent("NoVariableInitializer");
|
| }
|
| @@ -958,6 +973,24 @@ class AstBuilder extends ScopeListener {
|
| push(ast.dottedName(components));
|
| }
|
|
|
| + @override
|
| + void endDoWhileStatement(
|
| + Token doKeyword, Token whileKeyword, Token semicolon) {
|
| + debugEvent("DoWhileStatement");
|
| + ParenthesizedExpression condition = pop();
|
| + Statement body = pop();
|
| + pop(); // continue target
|
| + pop(); // break target
|
| + push(ast.doStatement(
|
| + toAnalyzerToken(doKeyword),
|
| + body,
|
| + toAnalyzerToken(whileKeyword),
|
| + condition.leftParenthesis,
|
| + condition.expression,
|
| + condition.rightParenthesis,
|
| + toAnalyzerToken(semicolon)));
|
| + }
|
| +
|
| void endConditionalUri(Token ifKeyword, Token equalitySign) {
|
| debugEvent("ConditionalUri");
|
| StringLiteral libraryUri = pop();
|
|
|