| 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);
|
|
|