Index: pkg/analyzer/lib/src/summary/link.dart |
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart |
index ef542674933fa461173d228465bb07a6a403757f..77c86f2ea8ffd383a94aad9ecd8ca2852eac736f 100644 |
--- a/pkg/analyzer/lib/src/summary/link.dart |
+++ b/pkg/analyzer/lib/src/summary/link.dart |
@@ -1541,7 +1541,7 @@ class ConstParameterNode extends ConstNode { |
List<ConstNode> dependencies = <ConstNode>[]; |
collectDependencies( |
dependencies, |
- parameterElement._unlinkedParam.defaultValue, |
+ parameterElement._unlinkedParam.initializer?.bodyExpr, |
parameterElement.compilationUnit); |
return dependencies; |
} |
@@ -3688,7 +3688,7 @@ class ParameterElementForLink implements ParameterElementImpl { |
ParameterElementForLink(this.enclosingElement, this._unlinkedParam, |
this._typeParameterContext, this.compilationUnit, this._parameterIndex) { |
- if (_unlinkedParam.defaultValue != null) { |
+ if (_unlinkedParam.initializer?.bodyExpr != null) { |
_constNode = new ConstParameterNode(this); |
} |
} |