Index: pkg/analysis_server/test/analysis/update_content_test.dart |
diff --git a/pkg/analysis_server/test/analysis/update_content_test.dart b/pkg/analysis_server/test/analysis/update_content_test.dart |
index 788088f0d59be11fd4df7c9f89bc7914761d94e8..166e63e5a0b06e396162a9aaae3c49fa8e1366a9 100644 |
--- a/pkg/analysis_server/test/analysis/update_content_test.dart |
+++ b/pkg/analysis_server/test/analysis/update_content_test.dart |
@@ -9,6 +9,7 @@ import 'package:analysis_server/src/analysis_server.dart'; |
import 'package:analysis_server/src/constants.dart'; |
import 'package:analysis_server/src/services/index/index.dart'; |
import 'package:analyzer/dart/ast/ast.dart'; |
+import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
import 'package:analyzer/file_system/file_system.dart'; |
import 'package:analyzer/src/generated/engine.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
@@ -293,7 +294,8 @@ class _ArgumentMatcher_CompilationUnit extends ArgumentMatcher { |
@override |
bool matches(arg) { |
- return arg is CompilationUnit && arg.element.source.fullName == file; |
+ return arg is CompilationUnit && |
+ resolutionMap.elementForCompilationUnit(arg).source.fullName == file; |
} |
} |