OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:analyzer/file_system/file_system.dart'; | 5 import 'package:analyzer/file_system/file_system.dart'; |
6 import 'package:analyzer/src/dart/analysis/byte_store.dart'; | 6 import 'package:analyzer/src/dart/analysis/byte_store.dart'; |
7 import 'package:analyzer/src/dart/analysis/driver.dart' | 7 import 'package:analyzer/src/dart/analysis/driver.dart' |
8 show AnalysisDriverScheduler, PerformanceLog; | 8 show AnalysisDriverScheduler, PerformanceLog; |
9 import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; | 9 import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; |
10 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 10 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
12 import 'package:analyzer_plugin/channel/channel.dart'; | 12 import 'package:analyzer_plugin/channel/channel.dart'; |
13 import 'package:analyzer_plugin/protocol/protocol.dart'; | 13 import 'package:analyzer_plugin/protocol/protocol.dart'; |
14 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; | 14 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; |
15 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; | 15 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
16 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; | 16 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; |
17 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; | 17 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; |
18 import 'package:analyzer_plugin/utilities/subscription_manager.dart'; | 18 import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dar
t'; |
19 import 'package:pub_semver/pub_semver.dart'; | 19 import 'package:pub_semver/pub_semver.dart'; |
20 | 20 |
21 /** | 21 /** |
22 * The abstract superclass of any class implementing a plugin for the analysis | 22 * The abstract superclass of any class implementing a plugin for the analysis |
23 * server. | 23 * server. |
24 * | 24 * |
25 * Clients may not implement or mix-in this class, but are expected to extend | 25 * Clients may not implement or mix-in this class, but are expected to extend |
26 * it. | 26 * it. |
27 */ | 27 */ |
28 abstract class ServerPlugin { | 28 abstract class ServerPlugin { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 response = new Response(id, | 396 response = new Response(id, |
397 error: new RequestError( | 397 error: new RequestError( |
398 RequestErrorCode.PLUGIN_ERROR, exception.toString(), | 398 RequestErrorCode.PLUGIN_ERROR, exception.toString(), |
399 stackTrace: stackTrace.toString())); | 399 stackTrace: stackTrace.toString())); |
400 } | 400 } |
401 if (response != null) { | 401 if (response != null) { |
402 _channel.sendResponse(response); | 402 _channel.sendResponse(response); |
403 } | 403 } |
404 } | 404 } |
405 } | 405 } |
OLD | NEW |