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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2549143007: Implement 'Import Library' Quick Fix for the new analysis driver. (Closed)
Patch Set: Created 4 years 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 | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index ae37536104a8ed69d1fd1601099d93804123a636..4534661f389eaa5aa4dde3c5cd28348bbf30a240 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -745,6 +745,7 @@ class AnalysisDriver {
return new AnalysisResult(
libraryFile,
file,
+ this,
sourceFactory,
file.path,
file.uri,
@@ -1155,6 +1156,11 @@ class AnalysisResult {
final FileState _file;
/**
+ * The [AnalysisDriver] that produced this result.
+ */
+ final AnalysisDriver driver;
+
+ /**
* The [SourceFactory] with which the file was analyzed.
*/
final SourceFactory sourceFactory;
@@ -1204,6 +1210,7 @@ class AnalysisResult {
AnalysisResult(
this._libraryFile,
this._file,
+ this.driver,
this.sourceFactory,
this.path,
this.uri,
« no previous file with comments | « pkg/analysis_server/lib/src/edit/edit_domain.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698