| 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; | 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/sdk.dart'; | 12 import 'package:analyzer/src/generated/sdk.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_common.dart'; | 15 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| 16 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; | 16 import 'package:analyzer_plugin/protocol/protocol_constants.dart'; |
| 17 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; | 17 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
| 18 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; | 18 import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; |
| 19 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; | 19 import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; |
| 20 import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dar
t'; | 20 import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dar
t'; |
| 21 import 'package:front_end/src/base/performace_logger.dart'; | 21 import 'package:analyzer/src/dart/analysis/performance_logger.dart'; |
| 22 import 'package:front_end/src/incremental/byte_store.dart'; | 22 import 'package:analyzer/src/dart/analysis/byte_store.dart'; |
| 23 import 'package:front_end/src/incremental/file_byte_store.dart'; | 23 import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; |
| 24 import 'package:path/src/context.dart'; | 24 import 'package:path/src/context.dart'; |
| 25 import 'package:pub_semver/pub_semver.dart'; | 25 import 'package:pub_semver/pub_semver.dart'; |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * The abstract superclass of any class implementing a plugin for the analysis | 28 * The abstract superclass of any class implementing a plugin for the analysis |
| 29 * server. | 29 * server. |
| 30 * | 30 * |
| 31 * Clients may not implement or mix-in this class, but are expected to extend | 31 * Clients may not implement or mix-in this class, but are expected to extend |
| 32 * it. | 32 * it. |
| 33 */ | 33 */ |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 response = new Response(id, requestTime, | 545 response = new Response(id, requestTime, |
| 546 error: new RequestError( | 546 error: new RequestError( |
| 547 RequestErrorCode.PLUGIN_ERROR, exception.toString(), | 547 RequestErrorCode.PLUGIN_ERROR, exception.toString(), |
| 548 stackTrace: stackTrace.toString())); | 548 stackTrace: stackTrace.toString())); |
| 549 } | 549 } |
| 550 if (response != null) { | 550 if (response != null) { |
| 551 _channel.sendResponse(response); | 551 _channel.sendResponse(response); |
| 552 } | 552 } |
| 553 } | 553 } |
| 554 } | 554 } |
| OLD | NEW |