Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| 11 import 'package:analyzer/src/generated/engine.dart' hide WorkManager; | |
| 11 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 12 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
| 13 import 'package:analyzer/src/task/driver.dart' show WorkManager; | |
|
Brian Wilkerson
2015/08/24 21:43:09
The interface WorkManager needs to be moved into t
scheglov
2015/08/26 15:43:07
Done.
| |
| 12 import 'package:analyzer/task/model.dart'; | 14 import 'package:analyzer/task/model.dart'; |
| 13 import 'package:plugin/plugin.dart'; | 15 import 'package:plugin/plugin.dart'; |
| 14 | 16 |
| 15 /** | 17 /** |
| 16 * The identifier of the extension point that allows plugins to register new | 18 * The identifier of the extension point that allows plugins to register new |
| 17 * analysis tasks with the analysis engine. The object used as an extension must | 19 * analysis tasks with the analysis engine. The object used as an extension must |
| 18 * be a [TaskDescriptor]. | 20 * be a [TaskDescriptor]. |
| 19 */ | 21 */ |
| 20 final String TASK_EXTENSION_POINT_ID = Plugin.join( | 22 final String TASK_EXTENSION_POINT_ID = Plugin.join( |
| 21 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.TASK_EXTENSION_POINT); | 23 EnginePlugin.UNIQUE_IDENTIFIER, EnginePlugin.TASK_EXTENSION_POINT); |
| 24 | |
| 25 /** | |
| 26 * The identifier of the extension point that allows plugins to register new | |
| 27 * work managers with the analysis engine. The object used as an extension must | |
| 28 * be a [WorkManagerFactory]. | |
| 29 */ | |
| 30 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join( | |
| 31 EnginePlugin.UNIQUE_IDENTIFIER, | |
| 32 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT); | |
| 33 | |
| 34 /** | |
| 35 * A function that will create a new [WorkManager] for the given [context]. | |
| 36 */ | |
| 37 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context); | |
| OLD | NEW |