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

Side by Side Diff: pkg/analysis_server/lib/src/provisional/completion/dart/completion.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
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 extends the analysis server by adding new 6 * Support for client code that extends the analysis server by adding new
7 * Dart specific completion contributors. 7 * Dart specific completion contributors.
8 * 8 *
9 * Plugins can register Dart specific completion contributor factories. 9 * Plugins can register Dart specific completion contributor factories.
10 * The registered contributor factories will be used to instantiate new 10 * The registered contributor factories will be used to instantiate new
11 * contributors to get completions any time a client issues 11 * contributors to get completions any time a client issues
12 * a 'completion.getSuggestions' request. 12 * a 'completion.getSuggestions' request.
13 * 13 *
14 * If a plugin wants to add completions, it should implement 14 * If a plugin wants to add completions, it should implement
15 * [DartCompletionContributorFactory] by including code 15 * [DartCompletionContributorFactory] by including code
16 * like the following in the plugin's registerExtensions method: 16 * like the following in the plugin's registerExtensions method:
17 * 17 *
18 * @override 18 * @override
19 * void registerExtensions(RegisterExtension registerExtension) { 19 * void registerExtensions(RegisterExtension registerExtension) {
20 * ... 20 * ...
21 * registerExtension( 21 * registerExtension(
22 * DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, 22 * DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID,
23 * () => new MyDartCompletionContributor()); 23 * () => new MyDartCompletionContributor());
24 * ... 24 * ...
25 * } 25 * }
26 */ 26 */
27 library analysis_server.src.provisional.completion.dart;
28
29 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 27 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
30 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 28 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
31 import 'package:plugin/plugin.dart'; 29 import 'package:plugin/plugin.dart';
32 30
33 /** 31 /**
34 * The identifier of the extension point that allows plugins to register code 32 * The identifier of the extension point that allows plugins to register code
35 * completion contributors. The object used as an extension must be a 33 * completion contributors. The object used as an extension must be a
36 * [DartCompletionContributorFactory]. 34 * [DartCompletionContributorFactory].
37 */ 35 */
38 final String DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID = Plugin.join( 36 final String DART_COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID = Plugin.join(
39 DartCompletionPlugin.UNIQUE_IDENTIFIER, 37 DartCompletionPlugin.UNIQUE_IDENTIFIER,
40 DartCompletionPlugin.CONTRIBUTOR_EXTENSION_POINT); 38 DartCompletionPlugin.CONTRIBUTOR_EXTENSION_POINT);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698