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

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

Issue 2565993002: Remove the command-line plugin (Closed)
Patch Set: remove missed file 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/lint/analysis.dart ('k') | pkg/analyzer/test/generated/test_support.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/plugin/command_line_plugin.dart
diff --git a/pkg/analyzer/lib/src/plugin/command_line_plugin.dart b/pkg/analyzer/lib/src/plugin/command_line_plugin.dart
deleted file mode 100644
index b2f8c582cdbb530fb642291acd6956f6e96447d3..0000000000000000000000000000000000000000
--- a/pkg/analyzer/lib/src/plugin/command_line_plugin.dart
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library analyzer.src.plugin.command_line_plugin;
-
-import 'package:analyzer/plugin/command_line.dart';
-import 'package:plugin/plugin.dart';
-
-/**
- * A plugin that defines the extension points and extensions that are defined by
- * command-line applications using the analysis engine.
- */
-class CommandLinePlugin implements Plugin {
- /**
- * The simple identifier of the extension point that allows plugins to
- * register new parser contributors.
- */
- static const String PARSER_CONTRIBUTOR_EXTENSION_POINT = 'parserContributor';
-
- /**
- * The simple identifier of the extension point that allows plugins to
- * register new result processors.
- */
- static const String RESULT_PROCESSOR_EXTENSION_POINT = 'resultProcessor';
-
- /**
- * The unique identifier of this plugin.
- */
- static const String UNIQUE_IDENTIFIER = 'command_line.core';
-
- /**
- * The extension point that allows plugins to register new parser
- * contributors.
- */
- ExtensionPoint<ArgParserContributor> parserContributorExtensionPoint;
-
- /**
- * The extension point that allows plugins to register new result processors.
- */
- ExtensionPoint<ArgResultsProcessor> resultProcessorExtensionPoint;
-
- /**
- * Initialize a newly created plugin.
- */
- CommandLinePlugin();
-
- /**
- * Return a list containing all of the parser contributors that were
- * contributed.
- */
- List<ArgParserContributor> get parserContributors =>
- parserContributorExtensionPoint.extensions;
-
- /**
- * Return a list containing all of the result processors that were
- * contributed.
- */
- List<ArgResultsProcessor> get resultProcessors =>
- resultProcessorExtensionPoint.extensions;
-
- @override
- String get uniqueIdentifier => UNIQUE_IDENTIFIER;
-
- @override
- void registerExtensionPoints(RegisterExtensionPoint registerExtensionPoint) {
- parserContributorExtensionPoint = new ExtensionPoint<ArgParserContributor>(
- this, PARSER_CONTRIBUTOR_EXTENSION_POINT, null);
- registerExtensionPoint(parserContributorExtensionPoint);
- resultProcessorExtensionPoint = new ExtensionPoint<ArgResultsProcessor>(
- this, RESULT_PROCESSOR_EXTENSION_POINT, null);
- registerExtensionPoint(resultProcessorExtensionPoint);
- }
-
- @override
- void registerExtensions(RegisterExtension registerExtension) {
- // There are no default extensions.
- }
-}
« no previous file with comments | « pkg/analyzer/lib/src/lint/analysis.dart ('k') | pkg/analyzer/test/generated/test_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698