| 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 f275201ab3346cb10dd4a3850e0216a67e085d2d..b75cb180b3dd0acf1d9e30a0ea62442686a76683 100644
|
| --- a/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
|
| +++ b/pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart
|
| @@ -63,10 +63,10 @@ class AstBuilder extends ScopeListener {
|
| /// to the list.
|
| var accumulateIdentifierComponents = false;
|
|
|
| -
|
| AstBuilder(this.library, this.member, this.elementStore, Scope scope,
|
| [Uri uri])
|
| - : uri = uri ?? library.fileUri, super(scope);
|
| + : uri = uri ?? library.fileUri,
|
| + super(scope);
|
|
|
| createJumpTarget(JumpTargetKind kind, int charOffset) {
|
| // TODO(ahe): Implement jump targets.
|
| @@ -980,9 +980,12 @@ class AstBuilder extends ScopeListener {
|
| debugEvent("TopLevelFields");
|
| List<VariableDeclaration> variables = popList(count);
|
| TypeAnnotation type = pop();
|
| - // TODO(paulberry): the var/const/final keyword should be pointed to by
|
| - // beginToken.
|
| - var keyword = null; // TODO(paulberry)
|
| + var keyword;
|
| + if (optional('var', beginToken) ||
|
| + optional('const', beginToken) ||
|
| + optional('final', beginToken)) {
|
| + keyword = beginToken;
|
| + }
|
| var variableList = ast.variableDeclarationList(
|
| null, null, toAnalyzerToken(keyword), type, variables);
|
| var modifiers = pop();
|
|
|