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

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

Issue 2010993002: Migrate UnlinkedParam.defaultValue to UnlinkedExecutable.bodyExpr. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index d0d4819279d16e3119a7551da04a7f4c67d77eb5..d8e3f2e23bf2b2dc141764a8c09e36f83942f0f2 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -2332,9 +2332,9 @@ class _UnitResynthesizer {
new DefaultFieldFormalParameterElementImpl(
serializedParameter.name, nameOffset);
initializingParameter = defaultParameter;
- if (serializedParameter.defaultValue != null) {
+ if (serializedParameter.initializer?.bodyExpr != null) {
defaultParameter.constantInitializer = _buildConstExpression(
- enclosingElement, serializedParameter.defaultValue);
+ enclosingElement, serializedParameter.initializer.bodyExpr);
defaultParameter.defaultValueCode =
serializedParameter.defaultValueCode;
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698