| Index: pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/constant/evaluation.dart b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| index 5484bba6e86bb6c6ceaf426ce08e6fcb9f1d46b6..2bf03d57e82f09e7c506ebebc1c581a3deae0c99 100644
|
| --- a/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| +++ b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| @@ -295,16 +295,17 @@ class ConstantEvaluationEngine {
|
| // any other constants. So we don't need to report any dependencies.
|
| return;
|
| }
|
| - bool superInvocationFound = false;
|
| + bool defaultSuperInvocationNeeded = true;
|
| List<ConstructorInitializer> initializers =
|
| constant.constantInitializers;
|
| for (ConstructorInitializer initializer in initializers) {
|
| - if (initializer is SuperConstructorInvocation) {
|
| - superInvocationFound = true;
|
| + if (initializer is SuperConstructorInvocation ||
|
| + initializer is RedirectingConstructorInvocation) {
|
| + defaultSuperInvocationNeeded = false;
|
| }
|
| initializer.accept(referenceFinder);
|
| }
|
| - if (!superInvocationFound) {
|
| + if (defaultSuperInvocationNeeded) {
|
| // No explicit superconstructor invocation found, so we need to
|
| // manually insert a reference to the implicit superconstructor.
|
| InterfaceType superclass =
|
|
|