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 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 import 'package:analyzer/file_system/physical_file_system.dart'; | 8 import 'package:analyzer/file_system/physical_file_system.dart'; |
9 import 'package:analyzer/src/dart/analysis/driver.dart' | 9 import 'package:analyzer/src/dart/analysis/driver.dart' |
10 show AnalysisDriverGeneric, AnalysisDriverScheduler, PerformanceLog; | 10 show AnalysisDriverGeneric, AnalysisDriverScheduler; |
11 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 11 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
12 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
13 import 'package:analyzer_plugin/channel/channel.dart'; | 13 import 'package:analyzer_plugin/channel/channel.dart'; |
14 import 'package:analyzer_plugin/protocol/protocol.dart'; | 14 import 'package:analyzer_plugin/protocol/protocol.dart'; |
15 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; | 15 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; |
16 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; | 16 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
17 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; | 17 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; |
18 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; | 18 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; |
19 import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dar
t'; | 19 import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dar
t'; |
| 20 import 'package:front_end/src/base/performace_logger.dart'; |
20 import 'package:front_end/src/incremental/byte_store.dart'; | 21 import 'package:front_end/src/incremental/byte_store.dart'; |
21 import 'package:front_end/src/incremental/file_byte_store.dart'; | 22 import 'package:front_end/src/incremental/file_byte_store.dart'; |
22 import 'package:path/src/context.dart'; | 23 import 'package:path/src/context.dart'; |
23 import 'package:pub_semver/pub_semver.dart'; | 24 import 'package:pub_semver/pub_semver.dart'; |
24 | 25 |
25 /** | 26 /** |
26 * The abstract superclass of any class implementing a plugin for the analysis | 27 * The abstract superclass of any class implementing a plugin for the analysis |
27 * server. | 28 * server. |
28 * | 29 * |
29 * Clients may not implement or mix-in this class, but are expected to extend | 30 * Clients may not implement or mix-in this class, but are expected to extend |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 response = new Response(id, | 534 response = new Response(id, |
534 error: new RequestError( | 535 error: new RequestError( |
535 RequestErrorCode.PLUGIN_ERROR, exception.toString(), | 536 RequestErrorCode.PLUGIN_ERROR, exception.toString(), |
536 stackTrace: stackTrace.toString())); | 537 stackTrace: stackTrace.toString())); |
537 } | 538 } |
538 if (response != null) { | 539 if (response != null) { |
539 _channel.sendResponse(response); | 540 _channel.sendResponse(response); |
540 } | 541 } |
541 } | 542 } |
542 } | 543 } |
OLD | NEW |