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

Unified Diff: pkg/analyzer_plugin/lib/plugin/plugin.dart

Issue 2999783002: Initial implementation of the kythe domain (Closed)
Patch Set: Created 3 years, 4 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 | « pkg/analysis_server/lib/src/services/kythe/kythe_visitors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/plugin/plugin.dart
diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart
index 51792b6325cb450d3ed5d506bc6a5e5310b873b2..5179732ddcb50f0f62652a43686f39e0ab5561c6 100644
--- a/pkg/analyzer_plugin/lib/plugin/plugin.dart
+++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart
@@ -6,9 +6,12 @@ import 'dart:async';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/physical_file_system.dart';
+import 'package:analyzer/src/dart/analysis/byte_store.dart';
import 'package:analyzer/src/dart/analysis/driver.dart'
show AnalysisDriverGeneric, AnalysisDriverScheduler;
+import 'package:analyzer/src/dart/analysis/file_byte_store.dart';
import 'package:analyzer/src/dart/analysis/file_state.dart';
+import 'package:analyzer/src/dart/analysis/performance_logger.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer_plugin/channel/channel.dart';
import 'package:analyzer_plugin/protocol/protocol.dart';
@@ -18,9 +21,6 @@ import 'package:analyzer_plugin/protocol/protocol_generated.dart';
import 'package:analyzer_plugin/src/protocol/protocol_internal.dart';
import 'package:analyzer_plugin/src/utilities/null_string_sink.dart';
import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dart';
-import 'package:analyzer/src/dart/analysis/performance_logger.dart';
-import 'package:analyzer/src/dart/analysis/byte_store.dart';
-import 'package:analyzer/src/dart/analysis/file_byte_store.dart';
import 'package:path/src/context.dart';
import 'package:pub_semver/pub_semver.dart';
@@ -373,6 +373,13 @@ abstract class ServerPlugin {
null;
/**
+ * Handle a 'kythe.getKytheEntries' request.
+ */
+ Future<KytheGetKytheEntriesResult> handleKytheGetKytheEntries(
+ KytheGetKytheEntriesParams parameters) async =>
+ null;
+
+ /**
* Handle a 'plugin.shutdown' request. Subclasses can override this method to
* perform any required clean-up, but cannot prevent the plugin from shutting
* down.
@@ -511,6 +518,10 @@ abstract class ServerPlugin {
var params = new EditGetRefactoringParams.fromRequest(request);
result = await handleEditGetRefactoring(params);
break;
+ case KYTHE_REQUEST_GET_KYTHE_ENTRIES:
+ var params = new KytheGetKytheEntriesParams.fromRequest(request);
+ result = await handleKytheGetKytheEntries(params);
+ break;
case PLUGIN_REQUEST_SHUTDOWN:
var params = new PluginShutdownParams();
result = await handlePluginShutdown(params);
« no previous file with comments | « pkg/analysis_server/lib/src/services/kythe/kythe_visitors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698