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 2f27c12eed44d05b8e5c7f5a16979cfc938beff9..35033117be0bc2d99512d7bb82c49ba4deabb26c 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/naming_conventions.dart |
@@ -7,7 +7,6 @@ library services.src.refactoring.naming_conventions; |
import 'package:analysis_server/src/services/correction/status.dart'; |
import 'package:analysis_server/src/services/correction/strings.dart'; |
- |
/** |
* Returns the [RefactoringStatus] with severity: |
* OK if the name is valid; |
@@ -102,10 +101,8 @@ RefactoringStatus validateLibraryName(String name) { |
// check identifiers |
List<String> identifiers = name.split('.'); |
for (String identifier in identifiers) { |
- RefactoringStatus status = _validateIdentifier( |
- identifier, |
- "Library name identifier", |
- "a lowercase letter or underscore"); |
+ RefactoringStatus status = _validateIdentifier(identifier, |
+ "Library name identifier", "a lowercase letter or underscore"); |
if (!status.isOK) { |
return status; |
} |
@@ -153,8 +150,8 @@ RefactoringStatus validateVariableName(String name) { |
return _validateLowerCamelCase(name, "Variable"); |
} |
-RefactoringStatus _validateIdentifier(String identifier, String desc, |
- String beginDesc) { |
+RefactoringStatus _validateIdentifier( |
+ String identifier, String desc, String beginDesc) { |
// has leading/trailing spaces |
String trimmed = identifier.trim(); |
if (identifier != trimmed) { |
@@ -231,8 +228,8 @@ RefactoringStatus _validateUpperCamelCase(String identifier, String desc) { |
return new RefactoringStatus.fatal(message); |
} |
// is not identifier |
- RefactoringStatus status = |
- _validateIdentifier(identifier, desc, "an uppercase letter or underscore"); |
+ RefactoringStatus status = _validateIdentifier( |
+ identifier, desc, "an uppercase letter or underscore"); |
if (!status.isOK) { |
return status; |
} |