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; |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 /** | 449 /** |
450 * The method that is called when an error has occurred in the analysis | 450 * The method that is called when an error has occurred in the analysis |
451 * server. This method will not be invoked under normal conditions. | 451 * server. This method will not be invoked under normal conditions. |
452 */ | 452 */ |
453 void onError(Object exception, StackTrace stackTrace) {} | 453 void onError(Object exception, StackTrace stackTrace) {} |
454 | 454 |
455 /** | 455 /** |
456 * Send notifications corresponding to the given description of subscriptions. | 456 * Send notifications corresponding to the given description of subscriptions. |
457 * The map is keyed by the path of each file for which notifications should be | 457 * The map is keyed by the path of each file for which notifications should be |
458 * send and has values representing the list of services associated with the | 458 * sent and has values representing the list of services associated with the |
459 * notifications to send. | 459 * notifications to send. |
460 */ | 460 */ |
461 void sendNotificationsForSubscriptions( | 461 void sendNotificationsForSubscriptions( |
462 Map<String, List<AnalysisService>> subscriptions); | 462 Map<String, List<AnalysisService>> subscriptions); |
463 | 463 |
464 /** | 464 /** |
465 * Start this plugin by listening to the given communication [channel]. | 465 * Start this plugin by listening to the given communication [channel]. |
466 */ | 466 */ |
467 void start(PluginCommunicationChannel channel) { | 467 void start(PluginCommunicationChannel channel) { |
468 _channel = channel; | 468 _channel = channel; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 response = new Response(id, requestTime, | 582 response = new Response(id, requestTime, |
583 error: new RequestError( | 583 error: new RequestError( |
584 RequestErrorCode.PLUGIN_ERROR, exception.toString(), | 584 RequestErrorCode.PLUGIN_ERROR, exception.toString(), |
585 stackTrace: stackTrace.toString())); | 585 stackTrace: stackTrace.toString())); |
586 } | 586 } |
587 if (response != null) { | 587 if (response != null) { |
588 _channel.sendResponse(response); | 588 _channel.sendResponse(response); |
589 } | 589 } |
590 } | 590 } |
591 } | 591 } |
OLD | NEW |