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

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

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
Index: pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
index be9162d6ded1eed0202dd45c726d6deae8acd23b..da79930df9a411e83763e1be010e622f8f932ecd 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
@@ -731,7 +731,8 @@ class ExtractMethodRefactoringImpl extends RefactoringImpl
names.clear();
if (_selectionExpression != null) {
names.addAll(getVariableNameSuggestionsForExpression(
- _selectionExpression.staticType, _selectionExpression,
+ _selectionExpression.staticType,
+ _selectionExpression,
_excludedNames));
}
}
@@ -817,8 +818,10 @@ class _ExtractMethodAnalyzer extends StatementAnalyzer {
Object visitConstructorInitializer(ConstructorInitializer node) {
super.visitConstructorInitializer(node);
if (_isFirstSelectedNode(node)) {
- invalidSelection('Cannot extract a constructor initializer. '
- 'Select expression part of initializer.', newLocation_fromNode(node));
+ invalidSelection(
+ 'Cannot extract a constructor initializer. '
+ 'Select expression part of initializer.',
+ newLocation_fromNode(node));
}
return null;
}
@@ -870,8 +873,10 @@ class _ExtractMethodAnalyzer extends StatementAnalyzer {
Object visitVariableDeclaration(VariableDeclaration node) {
super.visitVariableDeclaration(node);
if (_isFirstSelectedNode(node)) {
- invalidSelection('Cannot extract a variable declaration fragment. '
- 'Select whole declaration statement.', newLocation_fromNode(node));
+ invalidSelection(
+ 'Cannot extract a variable declaration fragment. '
+ 'Select whole declaration statement.',
+ newLocation_fromNode(node));
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698