Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
index 5dc5c2df0601534fdccdf9239b89356d1e03ebd7..145a167c11c54b9f91721a66b44c89648d49c13f 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
@@ -35,6 +35,7 @@ import 'package:analyzer/src/generated/scanner.dart'; |
import 'package:analyzer/src/generated/sdk.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
import 'package:analyzer/src/generated/utilities_dart.dart'; |
+import 'package:analyzer/src/task/dart.dart'; |
import 'package:path/path.dart'; |
/** |
@@ -1446,7 +1447,7 @@ class FixProcessor { |
sdkSourceFactory.resolveUri(unitSource, libraryUri); |
// prepare LibraryElement |
LibraryElement libraryElement = |
- context.getLibraryElement(librarySource); |
+ context.getResult(librarySource, LIBRARY_ELEMENT8); |
if (libraryElement == null) { |
continue; |
} |
@@ -1479,7 +1480,7 @@ class FixProcessor { |
} |
// prepare LibraryElement |
LibraryElement libraryElement = |
- context.getLibraryElement(librarySource); |
+ context.getResult(librarySource, LIBRARY_ELEMENT8); |
if (libraryElement == null) { |
continue; |
} |