Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: pkg/analyzer_plugin/lib/plugin/plugin.dart

Issue 2988683002: Fix a typo in the docs (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698