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 1d19325cc635555ae3d955e403b4b50520564e5e..0fba8e2974d555236e004dcd52e04eedd4f86eb3 100644 |
--- a/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
+++ b/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
@@ -334,6 +334,7 @@ class IncrementalCompilationUnitElementBuilder { |
classElement.constructors = classElementHolder.constructors; |
classElement.fields = newFields.values.toList(); |
classElement.methods = classElementHolder.methods; |
+ classElement.version++; |
classElementHolder.validate(); |
// Ensure at least a default synthetic constructor. |
if (classElement.constructors.isEmpty) { |