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

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

Issue 2568723002: Change the way tasks are registered (Closed)
Patch Set: Created 4 years 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/analyzer/lib/src/generated/engine.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 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 23 matching lines...) Expand all
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 36 * analysis error results to compute for an HTML source. The object used as an
37 * extension must be a [ResultDescriptor]. 37 * extension must be a [ResultDescriptor].
38 */ 38 */
39 final String HTML_ERRORS_EXTENSION_POINT_ID = Plugin.join( 39 final String HTML_ERRORS_EXTENSION_POINT_ID = Plugin.join(
40 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.HTML_ERRORS_EXTENSION_POINT); 40 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.HTML_ERRORS_EXTENSION_POINT);
41 41
42 /** 42 /**
43 * The identifier of the extension point that allows plugins to register new 43 * The identifier of the extension point that allows plugins to register new
44 * analysis tasks with the analysis engine. The object used as an extension must
45 * be a [TaskDescriptor].
46 *
47 * Contributed tasks should never extract information from Dart elements or AST
48 * (e.g. offsets) of a source and put it into results for targets in other
49 * sources. Dart elements and ASTs are updated during incremental resolution,
50 * and invalidation of results is intentionally limited by the source bounds
51 * for performance reasons.
52 */
53 final String TASK_EXTENSION_POINT_ID = Plugin.join(
54 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.TASK_EXTENSION_POINT);
55
56 /**
57 * The identifier of the extension point that allows plugins to register new
58 * work managers with the analysis engine. The object used as an extension must 44 * work managers with the analysis engine. The object used as an extension must
59 * be a [WorkManagerFactory]. 45 * be a [WorkManagerFactory].
60 */ 46 */
61 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join( 47 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join(
62 EnginePlugin.UNIQUE_IDENTIFIER, 48 EnginePlugin.UNIQUE_IDENTIFIER,
63 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT); 49 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT);
64 50
65 /** 51 /**
66 * A function that will create a new [WorkManager] for the given [context]. 52 * A function that will create a new [WorkManager] for the given [context].
67 */ 53 */
68 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context); 54 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context);
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698