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

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

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698