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

Unified Diff: pkg/analysis_server/lib/plugin/plugin.dart

Issue 840473007: Minor clean-ups and rename (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/plugin/plugin.dart
diff --git a/pkg/analysis_server/lib/plugin/plugin.dart b/pkg/analysis_server/lib/plugin/plugin.dart
index e48550fc4d46c043533135105b00b4f2cf6031ff..8000ecb4cee9d91a2b678ffa3d45a830b5848b93 100644
--- a/pkg/analysis_server/lib/plugin/plugin.dart
+++ b/pkg/analysis_server/lib/plugin/plugin.dart
@@ -5,15 +5,6 @@
library analysis_server.plugin.plugin;
/**
- * A function used by a plugin to validate an [extension] to a extension point.
- *
- * An [ExtensionError] should be thrown if the [extension] is not valid for the
- * extension point, such as an [extension] that does not implement the required
- * interface.
- */
-typedef void ExtensionValidator(Object extension);
-
-/**
* A function used to register the given [extension] to the extension point with
* the given unique [identifier].
*
@@ -33,7 +24,16 @@ typedef void RegisterExtension(String identifier, Object extension);
* with the same simple identifier.
*/
typedef ExtensionPoint RegisterExtensionPoint(String identifier,
- [ExtensionValidator validator]);
+ [ValidateExtension validator]);
scheglov 2015/01/12 16:17:50 Just a question: Should this parameter also be ren
Brian Wilkerson 2015/01/12 16:35:03 Good catch. Done.
+
+/**
+ * A function used by a plugin to validate an [extension] to a extension point.
+ *
+ * An [ExtensionError] should be thrown if the [extension] is not valid for the
+ * extension point, such as an [extension] that does not implement the required
+ * interface.
+ */
+typedef void ValidateExtension(Object extension);
/**
* An exception indicating that an error occurred while attempting to register
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/plugin/plugin_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698