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

Side by Side Diff: pkg/analysis_server/lib/plugin/analysis/analysis_domain.dart

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 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 | pkg/analysis_server/lib/plugin/analysis/analyzed_files.dart » ('j') | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /** 5 /**
6 * Support for client code that interacts with the analysis domain of an 6 * Support for client code that interacts with the analysis domain of an
7 * analysis server. 7 * analysis server.
8 * 8 *
9 * Plugins can gain access to the request handler that implements the analysis 9 * Plugins can gain access to the request handler that implements the analysis
10 * domain in order to extend the functionality of that domain. The class 10 * domain in order to extend the functionality of that domain. The class
11 * [AnalysisDomain] defines the API of the analysis domain that plugins can use. 11 * [AnalysisDomain] defines the API of the analysis domain that plugins can use.
12 * 12 *
13 * If a plugin is interested in gaining access to the analysis domain, it should 13 * If a plugin is interested in gaining access to the analysis domain, it should
14 * register a function by including code like the following in the plugin's 14 * register a function by including code like the following in the plugin's
15 * registerExtensions method: 15 * registerExtensions method:
16 * 16 *
17 * AnalysisDomain analysisDomain; 17 * AnalysisDomain analysisDomain;
18 * 18 *
19 * @override 19 * @override
20 * void registerExtensions(RegisterExtension registerExtension) { 20 * void registerExtensions(RegisterExtension registerExtension) {
21 * ... 21 * ...
22 * registerExtension( 22 * registerExtension(
23 * SET_ANALYSIS_DOMAIN_EXTENSION_POINT_ID, 23 * SET_ANALYSIS_DOMAIN_EXTENSION_POINT_ID,
24 * (AnalysisDomain domain) => analysisDomain = domain); 24 * (AnalysisDomain domain) => analysisDomain = domain);
25 * ... 25 * ...
26 * } 26 * }
27 */ 27 */
28 library analysis_server.plugin.analysis.analysis_domain;
29
30 import 'dart:async'; 28 import 'dart:async';
31 29
32 import 'package:analysis_server/protocol/protocol_generated.dart' 30 import 'package:analysis_server/protocol/protocol_generated.dart'
33 show AnalysisService; 31 show AnalysisService;
34 import 'package:analysis_server/src/plugin/server_plugin.dart'; 32 import 'package:analysis_server/src/plugin/server_plugin.dart';
35 import 'package:analyzer/src/generated/engine.dart' 33 import 'package:analyzer/src/generated/engine.dart'
36 show AnalysisContext, ResultChangedEvent; 34 show AnalysisContext, ResultChangedEvent;
37 import 'package:analyzer/src/generated/source.dart' show Source; 35 import 'package:analyzer/src/generated/source.dart' show Source;
38 import 'package:analyzer/task/model.dart' show ResultDescriptor; 36 import 'package:analyzer/task/model.dart' show ResultDescriptor;
39 import 'package:plugin/plugin.dart'; 37 import 'package:plugin/plugin.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 */ 69 */
72 Stream<ResultChangedEvent> onResultChanged(ResultDescriptor result); 70 Stream<ResultChangedEvent> onResultChanged(ResultDescriptor result);
73 71
74 /** 72 /**
75 * Schedule sending the given [service] notifications for the given [source] 73 * Schedule sending the given [service] notifications for the given [source]
76 * in the given [context]. 74 * in the given [context].
77 */ 75 */
78 void scheduleNotification( 76 void scheduleNotification(
79 AnalysisContext context, Source source, AnalysisService service); 77 AnalysisContext context, Source source, AnalysisService service);
80 } 78 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/plugin/analysis/analyzed_files.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698