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

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

Issue 2582753003: Fix analysis.getNavigation with 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
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 213fd0a6e59c5ce1c3717afd7e8445f735b78821..ef28cb23d5b68662d365b9ea653a6358fa8f4eb0 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -848,6 +848,7 @@ class AnalysisDriver {
_sourceFactory,
file.path,
file.uri,
+ file.exists,
content,
file.contentHash,
file.lineInfo,
@@ -1311,6 +1312,11 @@ class AnalysisResult {
final Uri uri;
/**
+ * Return `true` if the file exists.
+ */
+ final bool exists;
+
+ /**
* The content of the file that was scanned, parsed and resolved.
*/
final String content;
@@ -1345,6 +1351,7 @@ class AnalysisResult {
this.sourceFactory,
this.path,
this.uri,
+ this.exists,
this.content,
this.contentHash,
this.lineInfo,
« no previous file with comments | « pkg/analysis_server/test/analysis/get_navigation_test.dart ('k') | pkg/analyzer/test/src/dart/analysis/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698