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 d4c107ef42d912fec24537f65853b6446285dd06..7058c8630efc51e381522feb41a64d3af177418d 100644 |
--- a/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
+++ b/pkg/analyzer/lib/src/task/incremental_element_builder.dart |
@@ -162,6 +162,7 @@ class IncrementalCompilationUnitElementBuilder { |
elements.add(element.setter); |
} |
} |
+ } else if (node is PartDirective || node is PartOfDirective) { |
} else if (node is Directive && node.element != null) { |
elements.add(node.element); |
} else if (node is Declaration && node.element != null) { |