Index: pkg/analyzer/lib/src/task/incremental_element_builder.dart |
diff --git a/pkg/analyzer/lib/src/task/incremental_element_builder.dart b/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
index 65de1a56c172dc04dea30e692fb500dc0edd8f36..eeee10a2b3297e948074e3c0f695e371ed851444 100644 |
--- a/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
+++ b/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
@@ -34,6 +34,7 @@ class ClassElementDelta { |
final List<ConstructorElement> addedConstructors = <ConstructorElement>[]; |
final List<ConstructorElement> removedConstructors = <ConstructorElement>[]; |
+ bool hasUnnamedConstructorChange = false; |
final List<MethodElement> addedMethods = <MethodElement>[]; |
final List<MethodElement> removedMethods = <MethodElement>[]; |
@@ -344,7 +345,11 @@ class IncrementalCompilationUnitElementBuilder { |
new ConstructorElementImpl.forNode(null); |
constructor.synthetic = true; |
classElement.constructors = <ConstructorElement>[constructor]; |
+ classDelta.addedConstructors.add(constructor); |
} |
+ classDelta.hasUnnamedConstructorChange = |
+ classDelta.addedConstructors.any((c) => c.name == '') || |
+ classDelta.removedConstructors.any((c) => c.name == ''); |
// OK |
return classDelta; |
} |