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

Side by Side Diff: pkg/analyzer/lib/plugin/task.dart

Issue 1341723003: Add an extension point for contributing to HTML_ERRORS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 engine by adding new 6 * Support for client code that extends the analysis engine by adding new
7 * analysis tasks. 7 * analysis tasks.
8 */ 8 */
9 library analyzer.plugin.task; 9 library analyzer.plugin.task;
10 10
(...skipping 15 matching lines...) Expand all
26 * The identifier of the extension point that allows plugins to register new 26 * The identifier of the extension point that allows plugins to register new
27 * analysis error results to compute for a Dart library specific unit. The 27 * analysis error results to compute for a Dart library specific unit. The
28 * object used as an extension must be a [ResultDescriptor]. 28 * object used as an extension must be a [ResultDescriptor].
29 */ 29 */
30 final String DART_ERRORS_FOR_UNIT_EXTENSION_POINT_ID = Plugin.join( 30 final String DART_ERRORS_FOR_UNIT_EXTENSION_POINT_ID = Plugin.join(
31 EnginePlugin.UNIQUE_IDENTIFIER, 31 EnginePlugin.UNIQUE_IDENTIFIER,
32 EnginePlugin.DART_ERRORS_FOR_UNIT_EXTENSION_POINT); 32 EnginePlugin.DART_ERRORS_FOR_UNIT_EXTENSION_POINT);
33 33
34 /** 34 /**
35 * The identifier of the extension point that allows plugins to register new 35 * The identifier of the extension point that allows plugins to register new
36 * analysis error results to compute for an HTML source. The object used as an
37 * extension must be a [ResultDescriptor].
38 */
39 final String HTML_ERRORS_EXTENSION_POINT_ID = Plugin.join(
40 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.HTML_ERRORS_EXTENSION_POINT);
41
42 /**
43 * The identifier of the extension point that allows plugins to register new
36 * analysis tasks with the analysis engine. The object used as an extension must 44 * analysis tasks with the analysis engine. The object used as an extension must
37 * be a [TaskDescriptor]. 45 * be a [TaskDescriptor].
38 */ 46 */
39 final String TASK_EXTENSION_POINT_ID = Plugin.join( 47 final String TASK_EXTENSION_POINT_ID = Plugin.join(
40 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.TASK_EXTENSION_POINT); 48 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.TASK_EXTENSION_POINT);
41 49
42 /** 50 /**
43 * The identifier of the extension point that allows plugins to register new 51 * The identifier of the extension point that allows plugins to register new
44 * work managers with the analysis engine. The object used as an extension must 52 * work managers with the analysis engine. The object used as an extension must
45 * be a [WorkManagerFactory]. 53 * be a [WorkManagerFactory].
46 */ 54 */
47 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join( 55 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join(
48 EnginePlugin.UNIQUE_IDENTIFIER, 56 EnginePlugin.UNIQUE_IDENTIFIER,
49 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT); 57 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT);
50 58
51 /** 59 /**
52 * A function that will create a new [WorkManager] for the given [context]. 60 * A function that will create a new [WorkManager] for the given [context].
53 */ 61 */
54 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context); 62 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context);
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/plugin/engine_plugin.dart » ('j') | pkg/analyzer/lib/src/task/html.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698