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 2b5ee327a4463238a80898be8b229d99197a8c79..7f4ba24ace645700182b08d61d28960994fb4fbe 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -2869,7 +2869,7 @@ class GenerateHintsTask extends SourceBasedAnalysisTask { |
new UsedLocalElements.merge(usedLocalElementsList); |
UnusedLocalElementsVerifier visitor = |
new UnusedLocalElementsVerifier(errorListener, usedElements); |
- unitElement.accept(visitor); |
+ unit.accept(visitor); |
} |
// Dart2js analysis. |
if (analysisOptions.dart2jsHint) { |