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

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

Issue 2489523008: Fix disposing context with the new driver. (Closed)
Patch Set: Created 4 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/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 de4b10d88424d474566d6db9364bfcadc05b4887..81a95de9ac82a29631043cc499e056889357e262 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -208,6 +208,16 @@ class AnalysisDriver {
}
/**
+ * Return the set of files added to analysis using [addFile].
+ */
+ Set<String> get addedFiles => _explicitFiles;
+
+ /**
+ * Return the set of files that are known, i.e. added or used implicitly.
+ */
+ Set<String> get knownFiles => _fsState.knownFiles;
+
+ /**
* Set the list of files that the driver should try to analyze sooner.
*
* Every path in the list must be absolute and normalized.
@@ -356,14 +366,6 @@ class AnalysisDriver {
}
/**
- * Return `true` if the file with the given [path] was explicitly added
- * to analysis using [addFile].
- */
- bool isAddedFile(String path) {
- return _explicitFiles.contains(path);
- }
-
- /**
* Return the [Future] that completes with a [ParseResult] for the file
* with the given [path].
*
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analyzer/lib/src/dart/analysis/file_state.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698