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

Side by Side Diff: pkg/analysis_server/lib/plugin/analysis/analyzed_files.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 set of files being analyzed by the 6 * Support for client code that extends the set of files being analyzed by the
7 * analysis server. 7 * analysis server.
8 * 8 *
9 * Plugins can contribute a list of file patterns. Any file whose path matches 9 * Plugins can contribute a list of file patterns. Any file whose path matches
10 * one or more of the contributed patterns will be analyzed. The file patterns 10 * one or more of the contributed patterns will be analyzed. The file patterns
11 * are interpreted as glob patterns as defined by the 'glob' package. 11 * are interpreted as glob patterns as defined by the 'glob' package.
12 * 12 *
13 * If a plugin is interested in analyzing a certain kind of file, it needs to 13 * If a plugin is interested in analyzing a certain kind of file, it needs to
14 * ensure that files of that kind will be analyzed. It should register a list of 14 * ensure that files of that kind will be analyzed. It should register a list of
15 * file patterns by including code like the following in the plugin's 15 * file patterns by including code like the following in the plugin's
16 * registerExtensions method: 16 * 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 * ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID, 22 * ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID,
23 * ['*.yaml']); 23 * ['*.yaml']);
24 * ... 24 * ...
25 * } 25 * }
26 */ 26 */
27 library analysis_server.plugin.analysis.analyzed_files;
28
29 import 'package:analysis_server/src/plugin/server_plugin.dart'; 27 import 'package:analysis_server/src/plugin/server_plugin.dart';
30 import 'package:plugin/plugin.dart'; 28 import 'package:plugin/plugin.dart';
31 29
32 /** 30 /**
33 * The identifier of the extension point that allows plugins to cause certain 31 * The identifier of the extension point that allows plugins to cause certain
34 * kinds of files to be analyzed. The object used as an extension must be a list 32 * kinds of files to be analyzed. The object used as an extension must be a list
35 * of strings. The strings are interpreted as glob patterns as defined by the 33 * of strings. The strings are interpreted as glob patterns as defined by the
36 * 'glob' package. 34 * 'glob' package.
37 */ 35 */
38 final String ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID = Plugin.join( 36 final String ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID = Plugin.join(
39 ServerPlugin.UNIQUE_IDENTIFIER, 37 ServerPlugin.UNIQUE_IDENTIFIER,
40 ServerPlugin.ANALYZED_FILE_PATTERNS_EXTENSION_POINT); 38 ServerPlugin.ANALYZED_FILE_PATTERNS_EXTENSION_POINT);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698