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

Unified Diff: pkg/analysis_server/lib/src/computer/import_elements_computer.dart

Issue 2989883002: Add sourceFactory getter to AnalysisSession (Closed)
Patch Set: Created 3 years, 5 months 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/analysis/session.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/computer/import_elements_computer.dart
diff --git a/pkg/analysis_server/lib/src/computer/import_elements_computer.dart b/pkg/analysis_server/lib/src/computer/import_elements_computer.dart
index f9328f4351017bd7e3b8ac8be9cae3af4abaf707..c30639db624cc769d0d17e934eb579383e3279b2 100644
--- a/pkg/analysis_server/lib/src/computer/import_elements_computer.dart
+++ b/pkg/analysis_server/lib/src/computer/import_elements_computer.dart
@@ -53,7 +53,7 @@ class ImportElementsComputer {
List<ImportedElements> filteredImportedElements =
_filterImportedElements(importedElementsList);
LibraryElement libraryElement = libraryResult.libraryElement;
- SourceFactory sourceFactory = libraryElement.context.sourceFactory;
+ SourceFactory sourceFactory = libraryResult.session.sourceFactory;
List<ImportDirective> existingImports = <ImportDirective>[];
for (var directive in libraryResult.unit.directives) {
if (directive is ImportDirective) {
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/analysis/session.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698