| Index: pkg/analyzer/lib/src/generated/resolver.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
|
| index 43b81e984cd71037817c59855ed580c028517f9d..f1688559d9a4c3ac42501a03e1ac9bb3a0fac2e2 100644
|
| --- a/pkg/analyzer/lib/src/generated/resolver.dart
|
| +++ b/pkg/analyzer/lib/src/generated/resolver.dart
|
| @@ -8678,16 +8678,10 @@ class ResolverVisitor extends ScopedVisitor {
|
| (element.initializer as FunctionElementImpl).returnType =
|
| node.defaultValue.staticType;
|
| }
|
| - FormalParameterList parent = node.parent;
|
| - AstNode grandparent = parent.parent;
|
| - if (grandparent is ConstructorDeclaration &&
|
| - grandparent.constKeyword != null) {
|
| - // For const constructors, we need to clone the ASTs for default formal
|
| - // parameters, so that we can use them during constant evaluation.
|
| - ParameterElement element = node.element;
|
| - (element as ConstVariableElement).constantInitializer =
|
| - new ConstantAstCloner().cloneNode(node.defaultValue);
|
| - }
|
| + // Clone the ASTs for default formal parameters, so that we can use them
|
| + // during constant evaluation.
|
| + (element as ConstVariableElement).constantInitializer =
|
| + new ConstantAstCloner().cloneNode(node.defaultValue);
|
| return null;
|
| }
|
|
|
|
|