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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart

Issue 573803002: Issue 18926. Rename refactoring for labels. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/services/refactoring/refactoring.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart b/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart
index 2e815fa25b51deaac1faed9aa4fa5b837d01f16e..8e3539f16a6d754dd12f4554e97fd251a668c533 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart
@@ -114,6 +114,16 @@ RefactoringStatus validateImportPrefixName(String name) {
* WARNING if the name is discouraged;
* ERROR if the name is illegal.
*/
+RefactoringStatus validateLabelName(String name) {
+ return _validateLowerCamelCase(name, "Label");
+}
+
+/**
+ * Returns the [RefactoringStatus] with severity:
+ * OK if the name is valid;
+ * WARNING if the name is discouraged;
+ * ERROR if the name is illegal.
+ */
RefactoringStatus validateLibraryName(String name) {
// null
if (name == null) {
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/refactoring.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698