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 141099f779b232ab950d21910a94ae23ca0a5939..b617b76930a0db11b87df2b720ca97b26016ba23 100644 |
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart |
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
@@ -1530,8 +1530,10 @@ class AstBuilder extends ScopeListener { |
void endLocalFunctionDeclaration(Token token) { |
debugEvent("LocalFunctionDeclaration"); |
FunctionBody body = pop(); |
- pop(); // constructor initializers |
- pop(); // separator before constructor initializers |
+ if (isFullAst) { |
+ pop(); // constructor initializers |
+ pop(); // separator before constructor initializers |
+ } |
FormalParameterList parameters = pop(); |
SimpleIdentifier name = pop(); |
TypeAnnotation returnType = pop(); |