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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1523343004: Restore auto-processing of plugins (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index aa395b0b13b504ad4af793de68c9c5c74cf4f2ad..1861ffede70a5eabc59870910fc7cc2047832daa 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -824,8 +824,7 @@ class AnalysisEngine {
TaskManager get taskManager {
if (_taskManager == null) {
if (enginePlugin.taskExtensionPoint == null) {
- throw new IllegalStateException(
- 'The analysis engine plugin has not been registered');
+ processRequiredPlugins();
}
_taskManager = new TaskManager();
_taskManager.addTaskDescriptors(enginePlugin.taskDescriptors);
@@ -858,7 +857,7 @@ class AnalysisEngine {
*/
void processRequiredPlugins() {
ExtensionManager manager = new ExtensionManager();
- manager.processPlugins(AnalysisEngine.instance.requiredPlugins);
+ manager.processPlugins(requiredPlugins);
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698