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

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

Issue 2952583003: Rename the plugin location key and directory name (Closed)
Patch Set: Created 3 years, 6 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/test/src/plugin/plugin_locator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/plugin/plugin_locator.dart
diff --git a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
index 0566680be15be6f849df6e378d2f724ef2ffb880..8f9a30c5204dcf34ddc98e998adbf4b38c832392 100644
--- a/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
+++ b/pkg/analysis_server/lib/src/plugin/plugin_locator.dart
@@ -13,13 +13,13 @@ class PluginLocator {
* The key used in the `pubspec.yaml` file to specify the location of the
* analysis plugin.
*/
- static const String analysisPluginKey = 'analysis_plugin';
+ static const String analyzerPluginKey = 'analyzer_plugin';
/**
* The name of the default plugin directory, located within the `tools`
* directory.
*/
- static const String defaultPluginFolderName = 'analysis_plugin';
+ static const String defaultPluginFolderName = 'analyzer_plugin';
/**
* The name of the `pubspec.yaml` file.
@@ -79,7 +79,7 @@ class PluginLocator {
sourceUrl: pubspecFile.toUri());
YamlNode contents = document.contents;
if (contents is YamlMap) {
- String pluginPath = contents[analysisPluginKey];
+ String pluginPath = contents[analyzerPluginKey];
if (pluginPath != null) {
Folder pluginFolder =
packageFolder.getChildAssumingFolder(pluginPath);
« no previous file with comments | « no previous file | pkg/analysis_server/test/src/plugin/plugin_locator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698