Skip to content

Commit fa0d991

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Remove task model initialization
Change-Id: I1c0bfd80f94b3d0f41a73d4df0fbe1b3514697c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95562 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 3712235 commit fa0d991

File tree

1 file changed

+0
-81
lines changed

1 file changed

+0
-81
lines changed

pkg/analyzer/lib/src/generated/engine.dart

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ import 'package:analyzer/src/services/lint.dart';
3131
import 'package:analyzer/src/summary/api_signature.dart';
3232
import 'package:analyzer/src/task/api/dart.dart';
3333
import 'package:analyzer/src/task/api/model.dart';
34-
import 'package:analyzer/src/task/dart.dart';
35-
import 'package:analyzer/src/task/general.dart';
3634
import 'package:analyzer/src/task/manager.dart';
37-
import 'package:analyzer/src/task/options.dart';
38-
import 'package:analyzer/src/task/yaml.dart';
3935
import 'package:front_end/src/fasta/scanner/token.dart';
4036
import 'package:path/path.dart' as pathos;
4137
import 'package:plugin/manager.dart';
@@ -819,8 +815,6 @@ class AnalysisEngine {
819815
TaskManager get taskManager {
820816
if (_taskManager == null) {
821817
_taskManager = new TaskManager();
822-
_initializeTaskMap();
823-
_initializeResults();
824818
}
825819
return _taskManager;
826820
}
@@ -854,81 +848,6 @@ class AnalysisEngine {
854848
}
855849
}
856850

857-
void _initializeResults() {
858-
_taskManager.addGeneralResult(DART_ERRORS);
859-
}
860-
861-
void _initializeTaskMap() {
862-
//
863-
// Register general tasks.
864-
//
865-
_taskManager.addTaskDescriptor(GetContentTask.DESCRIPTOR);
866-
//
867-
// Register Dart tasks.
868-
//
869-
_taskManager.addTaskDescriptor(BuildCompilationUnitElementTask.DESCRIPTOR);
870-
_taskManager.addTaskDescriptor(BuildDirectiveElementsTask.DESCRIPTOR);
871-
_taskManager.addTaskDescriptor(BuildEnumMemberElementsTask.DESCRIPTOR);
872-
_taskManager.addTaskDescriptor(BuildExportNamespaceTask.DESCRIPTOR);
873-
_taskManager.addTaskDescriptor(BuildLibraryElementTask.DESCRIPTOR);
874-
_taskManager.addTaskDescriptor(BuildPublicNamespaceTask.DESCRIPTOR);
875-
_taskManager.addTaskDescriptor(BuildSourceExportClosureTask.DESCRIPTOR);
876-
_taskManager.addTaskDescriptor(BuildTypeProviderTask.DESCRIPTOR);
877-
_taskManager.addTaskDescriptor(ComputeConstantDependenciesTask.DESCRIPTOR);
878-
_taskManager.addTaskDescriptor(ComputeConstantValueTask.DESCRIPTOR);
879-
_taskManager.addTaskDescriptor(
880-
ComputeInferableStaticVariableDependenciesTask.DESCRIPTOR);
881-
_taskManager.addTaskDescriptor(ComputeLibraryCycleTask.DESCRIPTOR);
882-
_taskManager.addTaskDescriptor(ComputeRequiredConstantsTask.DESCRIPTOR);
883-
_taskManager.addTaskDescriptor(ContainingLibrariesTask.DESCRIPTOR);
884-
_taskManager.addTaskDescriptor(DartErrorsTask.DESCRIPTOR);
885-
_taskManager.addTaskDescriptor(EvaluateUnitConstantsTask.DESCRIPTOR);
886-
_taskManager.addTaskDescriptor(GatherUsedImportedElementsTask.DESCRIPTOR);
887-
_taskManager.addTaskDescriptor(GatherUsedLocalElementsTask.DESCRIPTOR);
888-
_taskManager.addTaskDescriptor(GenerateHintsTask.DESCRIPTOR);
889-
_taskManager.addTaskDescriptor(GenerateLintsTask.DESCRIPTOR);
890-
_taskManager.addTaskDescriptor(InferInstanceMembersInUnitTask.DESCRIPTOR);
891-
_taskManager
892-
.addTaskDescriptor(InferStaticVariableTypesInUnitTask.DESCRIPTOR);
893-
_taskManager.addTaskDescriptor(InferStaticVariableTypeTask.DESCRIPTOR);
894-
_taskManager.addTaskDescriptor(LibraryErrorsReadyTask.DESCRIPTOR);
895-
_taskManager.addTaskDescriptor(LibraryUnitErrorsTask.DESCRIPTOR);
896-
_taskManager.addTaskDescriptor(ParseDartTask.DESCRIPTOR);
897-
_taskManager
898-
.addTaskDescriptor(PartiallyResolveUnitReferencesTask.DESCRIPTOR);
899-
_taskManager.addTaskDescriptor(ReadyLibraryElement2Task.DESCRIPTOR);
900-
_taskManager.addTaskDescriptor(ReadyLibraryElement5Task.DESCRIPTOR);
901-
_taskManager.addTaskDescriptor(ReadyLibraryElement7Task.DESCRIPTOR);
902-
_taskManager.addTaskDescriptor(ReadyResolvedUnitTask.DESCRIPTOR);
903-
_taskManager.addTaskDescriptor(ResolveConstantExpressionTask.DESCRIPTOR);
904-
_taskManager.addTaskDescriptor(ResolveDirectiveElementsTask.DESCRIPTOR);
905-
_taskManager
906-
.addTaskDescriptor(ResolvedUnit7InLibraryClosureTask.DESCRIPTOR);
907-
_taskManager.addTaskDescriptor(ResolvedUnit7InLibraryTask.DESCRIPTOR);
908-
_taskManager.addTaskDescriptor(ResolveInstanceFieldsInUnitTask.DESCRIPTOR);
909-
_taskManager.addTaskDescriptor(ResolveLibraryReferencesTask.DESCRIPTOR);
910-
_taskManager.addTaskDescriptor(ResolveLibraryTask.DESCRIPTOR);
911-
_taskManager.addTaskDescriptor(ResolveLibraryTypeNamesTask.DESCRIPTOR);
912-
_taskManager
913-
.addTaskDescriptor(ResolveTopLevelLibraryTypeBoundsTask.DESCRIPTOR);
914-
_taskManager
915-
.addTaskDescriptor(ResolveTopLevelUnitTypeBoundsTask.DESCRIPTOR);
916-
_taskManager.addTaskDescriptor(ResolveUnitTask.DESCRIPTOR);
917-
_taskManager.addTaskDescriptor(ResolveUnitTypeNamesTask.DESCRIPTOR);
918-
_taskManager.addTaskDescriptor(ResolveVariableReferencesTask.DESCRIPTOR);
919-
_taskManager.addTaskDescriptor(ScanDartTask.DESCRIPTOR);
920-
_taskManager.addTaskDescriptor(StrongModeVerifyUnitTask.DESCRIPTOR);
921-
_taskManager.addTaskDescriptor(VerifyUnitTask.DESCRIPTOR);
922-
//
923-
// Register YAML tasks.
924-
//
925-
_taskManager.addTaskDescriptor(ParseYamlTask.DESCRIPTOR);
926-
//
927-
// Register analysis option file tasks.
928-
//
929-
_taskManager.addTaskDescriptor(GenerateOptionsErrorsTask.DESCRIPTOR);
930-
}
931-
932851
/**
933852
* Return `true` if the given [fileName] is an analysis options file.
934853
*/

0 commit comments

Comments
 (0)