Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: pkg/analyzer/lib/src/summary/summarize_ast.dart

Issue 2661123002: Don't resynthesize field types during class members resynthesis. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ce0307d1bb984e2ebffae41e4c5da86b7cb27445..240fa8000cae17a4614eb07cb90d362c4ba6ccb7 100644
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart
@@ -710,8 +710,10 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
bool serializeBody) {
if (body is BlockFunctionBody || body is ExpressionFunctionBody) {
for (UnlinkedParamBuilder parameter in b.parameters) {
- parameter.visibleOffset = body.offset;
- parameter.visibleLength = body.length;
+ if (!parameter.isInitializingFormal) {
+ parameter.visibleOffset = body.offset;
+ parameter.visibleLength = body.length;
+ }
}
}
List<UnlinkedExecutableBuilder> oldExecutables = executables;
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698