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 1308feea31b15ad0a4826159aa6bd47113c2591e..494bbe621902833fc08224ef6715fff5fa0ffdd3 100644 |
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart |
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
@@ -532,11 +532,11 @@ class AstBuilder extends ScopeListener { |
TypeAnnotation type = pop(); |
_Modifiers modifiers = pop(); |
Token keyword = modifiers?.finalConstOrVarKeyword; |
- pop(); // Metadata. |
- pop(); // Comment. |
+ List<Annotation> metadata = pop(); |
+ Comment comment = pop(); |
push(ast.variableDeclarationStatement( |
ast.variableDeclarationList( |
- null, null, toAnalyzerToken(keyword), type, variables), |
+ comment, metadata, toAnalyzerToken(keyword), type, variables), |
toAnalyzerToken(endToken))); |
} |