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

Unified Diff: pkg/analyzer/lib/src/plugin/options_plugin.dart

Issue 2559523005: Remove the AnalysisOptionsProcessor (Closed)
Patch Set: Created 4 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 | « pkg/analyzer/lib/src/context/builder.dart ('k') | pkg/analyzer/lib/src/plugin/plugin_configuration.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/plugin/options_plugin.dart
diff --git a/pkg/analyzer/lib/src/plugin/options_plugin.dart b/pkg/analyzer/lib/src/plugin/options_plugin.dart
index aceaf3b6815ae96b610252ce3b9476a971280d9e..f7f7bbca7104e78178349c1c961d810ab9281230 100644
--- a/pkg/analyzer/lib/src/plugin/options_plugin.dart
+++ b/pkg/analyzer/lib/src/plugin/options_plugin.dart
@@ -14,10 +14,6 @@ import 'package:plugin/plugin.dart';
/// options file.
class OptionsPlugin implements Plugin {
/// The simple identifier of the extension point that allows plugins to
- /// register new options processors.
- static const String OPTIONS_PROCESSOR_EXTENSION_POINT = 'optionsProcessor';
-
- /// The simple identifier of the extension point that allows plugins to
/// register new options validators.
static const String OPTIONS_VALIDATOR_EXTENSION_POINT = 'optionsValidator';
@@ -25,17 +21,9 @@ class OptionsPlugin implements Plugin {
static const String UNIQUE_IDENTIFIER = 'options.core';
/// The extension point that allows plugins to register new options
- /// processors.
- ExtensionPoint<OptionsProcessor> optionsProcessorExtensionPoint;
-
- /// The extension point that allows plugins to register new options
/// validators.
ExtensionPoint<OptionsValidator> optionsValidatorExtensionPoint;
- /// All contributed options processors.
- List<OptionsProcessor> get optionsProcessors =>
- optionsProcessorExtensionPoint?.extensions ?? const <OptionsProcessor>[];
-
/// All contributed options validators.
List<OptionsValidator> get optionsValidators =>
optionsValidatorExtensionPoint?.extensions ?? const <OptionsValidator>[];
@@ -45,9 +33,6 @@ class OptionsPlugin implements Plugin {
@override
void registerExtensionPoints(RegisterExtensionPoint registerExtensionPoint) {
- optionsProcessorExtensionPoint = new ExtensionPoint<OptionsProcessor>(
- this, OPTIONS_PROCESSOR_EXTENSION_POINT, null);
- registerExtensionPoint(optionsProcessorExtensionPoint);
optionsValidatorExtensionPoint = new ExtensionPoint<OptionsValidator>(
this, OPTIONS_VALIDATOR_EXTENSION_POINT, null);
registerExtensionPoint(optionsValidatorExtensionPoint);
« no previous file with comments | « pkg/analyzer/lib/src/context/builder.dart ('k') | pkg/analyzer/lib/src/plugin/plugin_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698