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

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

Issue 2795743002: Add context information to driver and add hooks for plugin management (Closed)
Patch Set: Created 3 years, 9 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
Index: pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart b/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
index 7275e2048b232bf7ef3273e0061336c8b31b61a9..3f2d312b0d972efb87e56b7158da8a2db6417d4a 100644
--- a/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
+++ b/pkg/analysis_server/lib/src/plugin/plugin_watcher.dart
@@ -4,12 +4,12 @@
import 'package:analysis_server/src/plugin/plugin_locator.dart';
import 'package:analysis_server/src/plugin/plugin_manager.dart';
+import 'package:analyzer/context/context_root.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/source/package_map_resolver.dart';
import 'package:analyzer/src/dart/analysis/driver.dart';
import 'package:analyzer/src/dart/analysis/file_state.dart';
import 'package:analyzer/src/util/absolute_path.dart';
-import 'package:analyzer_plugin/protocol/protocol_generated.dart';
/**
* An object that watches the results produced by analysis drivers to identify
@@ -17,7 +17,7 @@ import 'package:analyzer_plugin/protocol/protocol_generated.dart';
* associated with them, causes the plugin to be associated with the driver's
* context root (which in turn might cause the plugin to be started).
*/
-class PluginWatcher {
+class PluginWatcher implements DriverWatcher {
/**
* The resource provider used to access the file system.
*/

Powered by Google App Engine
This is Rietveld 408576698