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

Unified Diff: pkg/analysis_server/lib/src/plugin/result_collector.dart

Issue 2689903002: Add conversion routines from the plugin API to the server API (Closed)
Patch Set: Created 3 years, 10 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/analysis_server/lib/src/plugin/result_converter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/plugin/result_collector.dart
diff --git a/pkg/analysis_server/lib/src/plugin/result_collector.dart b/pkg/analysis_server/lib/src/plugin/result_collector.dart
index d5491b97e91909489ccfa619d7a5e9dcd55a293b..80c6dc738a5fe254510e5740110d6d50e2754d02 100644
--- a/pkg/analysis_server/lib/src/plugin/result_collector.dart
+++ b/pkg/analysis_server/lib/src/plugin/result_collector.dart
@@ -66,6 +66,12 @@ class ResultCollector<E> {
}
/**
+ * Return `true` if this collector is collecting results associated with the
+ * given [filePath].
+ */
+ bool isCollectingFor(String filePath) => resultMap.containsKey(filePath);
+
+ /**
* Record the [partialResults] as having been contributed for the given
* [filePath] by the plugin with the given [pluginId].
*/
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/result_converter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698