Index: pkg/analyzer/lib/src/task/dart.dart |
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart |
index 4dde93d09a6e0d4e3cd3ad6d340bf7f17321b50b..feea05b8f986880ea294efc1acbd8d14ad233038 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -2606,6 +2606,18 @@ class DartDelta extends Delta { |
return true; |
} |
} |
+ // Resolution must be performed when the unnamed constructor of |
+ // an instantiated class is added/changed/removed. |
+ // TODO(scheglov) Use only instantiations with default constructor. |
+ for (String name in references.instantiatedNames) { |
+ for (ClassElementDelta classDelta in changedClasses.values) { |
+ if (classDelta.name == name && classDelta.hasUnnamedConstructorChange) { |
+ _log(() => |
+ '$refLibrary is affected by the default constructor of $name'); |
+ return true; |
+ } |
+ } |
+ } |
return false; |
} |