Index: pkg/analyzer/lib/src/summary/summarize_ast.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
index f5dd314cd5cce51d57cff3756a110a9b59919437..7c359c3e0eebf0e49fb4498a2d5cae9a714f19dd 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
@@ -901,7 +901,8 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
variables.type == null) { |
Expression initializer = variable.initializer; |
if (initializer != null) { |
- b.constExpr = serializeConstExpr(localClosureIndexMap, initializer); |
+ b.initializer.bodyExpr = |
+ serializeConstExpr(localClosureIndexMap, initializer); |
} |
} |
if (variable.initializer != null && |