| 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/generated/engine.dart'; |
| 12 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 12 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
| 13 import 'package:analyzer/task/model.dart'; | 13 import 'package:analyzer/task/model.dart'; |
| 14 import 'package:plugin/plugin.dart'; | 14 import 'package:plugin/plugin.dart'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * The identifier of the extension point that allows plugins to register new | 17 * The identifier of the extension point that allows plugins to register new |
| 18 * analysis error results to compute for a Dart source. The object used as an | 18 * analysis error results to compute for a Dart source. The object used as an |
| 19 * extension must be a [ResultDescriptor]. | 19 * extension must be a [ResultDescriptor]. |
| 20 */ | 20 */ |
| 21 final String DART_ERRORS_FOR_SOURCE_EXTENSION_POINT_ID = Plugin.join( | 21 final String DART_ERRORS_FOR_SOURCE_EXTENSION_POINT_ID = Plugin.join( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 * be a [WorkManagerFactory]. | 59 * be a [WorkManagerFactory]. |
| 60 */ | 60 */ |
| 61 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join( | 61 final String WORK_MANAGER_EXTENSION_POINT_ID = Plugin.join( |
| 62 EnginePlugin.UNIQUE_IDENTIFIER, | 62 EnginePlugin.UNIQUE_IDENTIFIER, |
| 63 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT); | 63 EnginePlugin.WORK_MANAGER_FACTORY_EXTENSION_POINT); |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * A function that will create a new [WorkManager] for the given [context]. | 66 * A function that will create a new [WorkManager] for the given [context]. |
| 67 */ | 67 */ |
| 68 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context); | 68 typedef WorkManager WorkManagerFactory(InternalAnalysisContext context); |
| OLD | NEW |