Index: pkg/analyzer/lib/src/dart/analysis/index.dart |
diff --git a/pkg/analyzer/lib/src/dart/analysis/index.dart b/pkg/analyzer/lib/src/dart/analysis/index.dart |
index 8191ca47f0395f2d8110f3a798ae036ad76a8d45..6b5c09c5963ec124816cd2b82efbf8804e412e8b 100644 |
--- a/pkg/analyzer/lib/src/dart/analysis/index.dart |
+++ b/pkg/analyzer/lib/src/dart/analysis/index.dart |
@@ -426,6 +426,7 @@ class _IndexContributor extends GeneralizingAstVisitor { |
ElementKind elementKind = element?.kind; |
if (elementKind == null || |
elementKind == ElementKind.DYNAMIC || |
+ elementKind == ElementKind.ERROR || |
elementKind == ElementKind.LABEL || |
elementKind == ElementKind.LOCAL_VARIABLE || |
elementKind == ElementKind.PREFIX || |