Index: pkg/analysis_server/lib/src/computer/computer_highlights2.dart |
diff --git a/pkg/analysis_server/lib/src/computer/computer_highlights2.dart b/pkg/analysis_server/lib/src/computer/computer_highlights2.dart |
index 7d67c261e07f292f47c9fb1c5458b76ff9e39d0b..630b41fd6d2f7d3fcdf7b51b7fe47c1a8e0cb3dc 100644 |
--- a/pkg/analysis_server/lib/src/computer/computer_highlights2.dart |
+++ b/pkg/analysis_server/lib/src/computer/computer_highlights2.dart |
@@ -6,6 +6,7 @@ library computer.highlights2; |
import 'package:analysis_server/plugin/protocol/protocol.dart' hide Element; |
import 'package:analyzer/dart/ast/ast.dart'; |
+import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
import 'package:analyzer/dart/ast/token.dart'; |
import 'package:analyzer/dart/ast/visitor.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
@@ -428,7 +429,7 @@ class DartUnitHighlightsComputer2 { |
if (e is SimpleIdentifier && e.staticElement is PrefixElement) { |
return false; |
} |
- return e.bestType.isDynamic; |
+ return resolutionMap.bestTypeForExpression(e).isDynamic; |
} |
} |