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 library analyzer.src.plugin.engine_plugin; | 5 library analyzer.src.plugin.engine_plugin; |
6 | 6 |
7 import 'package:analyzer/plugin/task.dart'; | 7 import 'package:analyzer/plugin/task.dart'; |
8 import 'package:analyzer/src/generated/engine.dart' | 8 import 'package:analyzer/src/generated/engine.dart' |
9 show InternalAnalysisContext; | 9 show InternalAnalysisContext; |
10 import 'package:analyzer/src/generated/error.dart' show AnalysisError; | 10 import 'package:analyzer/src/generated/error.dart' show AnalysisError; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR); | 194 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR); |
195 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR); | 195 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR); |
196 registerExtension( | 196 registerExtension( |
197 taskId, ComputeInferableStaticVariableDependenciesTask.DESCRIPTOR); | 197 taskId, ComputeInferableStaticVariableDependenciesTask.DESCRIPTOR); |
198 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR); | 198 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR); |
199 registerExtension(taskId, DartErrorsTask.DESCRIPTOR); | 199 registerExtension(taskId, DartErrorsTask.DESCRIPTOR); |
200 registerExtension(taskId, EvaluateUnitConstantsTask.DESCRIPTOR); | 200 registerExtension(taskId, EvaluateUnitConstantsTask.DESCRIPTOR); |
201 registerExtension(taskId, GatherUsedImportedElementsTask.DESCRIPTOR); | 201 registerExtension(taskId, GatherUsedImportedElementsTask.DESCRIPTOR); |
202 registerExtension(taskId, GatherUsedLocalElementsTask.DESCRIPTOR); | 202 registerExtension(taskId, GatherUsedLocalElementsTask.DESCRIPTOR); |
203 registerExtension(taskId, GenerateHintsTask.DESCRIPTOR); | 203 registerExtension(taskId, GenerateHintsTask.DESCRIPTOR); |
| 204 registerExtension(taskId, GenerateLintsTask.DESCRIPTOR); |
204 registerExtension(taskId, InferInstanceMembersInUnitTask.DESCRIPTOR); | 205 registerExtension(taskId, InferInstanceMembersInUnitTask.DESCRIPTOR); |
205 registerExtension(taskId, InferStaticVariableTypesInUnitTask.DESCRIPTOR); | 206 registerExtension(taskId, InferStaticVariableTypesInUnitTask.DESCRIPTOR); |
206 registerExtension(taskId, InferStaticVariableTypeTask.DESCRIPTOR); | 207 registerExtension(taskId, InferStaticVariableTypeTask.DESCRIPTOR); |
207 registerExtension(taskId, LibraryErrorsReadyTask.DESCRIPTOR); | 208 registerExtension(taskId, LibraryErrorsReadyTask.DESCRIPTOR); |
208 registerExtension(taskId, LibraryUnitErrorsTask.DESCRIPTOR); | 209 registerExtension(taskId, LibraryUnitErrorsTask.DESCRIPTOR); |
209 registerExtension(taskId, ParseDartTask.DESCRIPTOR); | 210 registerExtension(taskId, ParseDartTask.DESCRIPTOR); |
210 registerExtension(taskId, PartiallyResolveUnitReferencesTask.DESCRIPTOR); | 211 registerExtension(taskId, PartiallyResolveUnitReferencesTask.DESCRIPTOR); |
211 registerExtension(taskId, ResolveFunctionBodiesInUnitTask.DESCRIPTOR); | 212 registerExtension(taskId, ResolveFunctionBodiesInUnitTask.DESCRIPTOR); |
212 registerExtension(taskId, ResolveLibraryReferencesTask.DESCRIPTOR); | 213 registerExtension(taskId, ResolveLibraryReferencesTask.DESCRIPTOR); |
213 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR); | 214 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 * a [WorkManagerFactory]. | 261 * a [WorkManagerFactory]. |
261 */ | 262 */ |
262 void _validateWorkManagerFactoryExtension(Object extension) { | 263 void _validateWorkManagerFactoryExtension(Object extension) { |
263 if (extension is! WorkManagerFactory) { | 264 if (extension is! WorkManagerFactory) { |
264 String id = taskExtensionPoint.uniqueIdentifier; | 265 String id = taskExtensionPoint.uniqueIdentifier; |
265 throw new ExtensionError( | 266 throw new ExtensionError( |
266 'Extensions to $id must be a WorkManagerFactory'); | 267 'Extensions to $id must be a WorkManagerFactory'); |
267 } | 268 } |
268 } | 269 } |
269 } | 270 } |
OLD | NEW |