Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 1486663003: Ensure that a complete library element has constants evaluated (issue 24890) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698