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

Side by Side Diff: pkg/analyzer/lib/src/plugin/engine_plugin.dart

Issue 1385293002: Lint support for the new task model. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Tests and tweaks. Created 5 years, 2 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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698