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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/inline_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/inline_method.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart b/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart
index 35ba073bc4c990e5b3036b54f613b0a32e48102d..7c7e63569cb9ec177d62282efb415fc14ea6f9ee 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart
@@ -45,13 +45,17 @@ SourceRange _getLocalsConflictingRange(AstNode node) {
* Returns the source which should replace given invocation with given
* arguments.
*/
-String _getMethodSourceForInvocation(RefactoringStatus status, _SourcePart part,
- CorrectionUtils utils, AstNode contextNode, Expression targetExpression,
+String _getMethodSourceForInvocation(
+ RefactoringStatus status,
+ _SourcePart part,
+ CorrectionUtils utils,
+ AstNode contextNode,
+ Expression targetExpression,
List<Expression> arguments) {
// prepare edits to replace parameters with arguments
List<SourceEdit> edits = <SourceEdit>[];
- part._parameters.forEach((ParameterElement parameter,
- List<_ParameterOccurrence> occurrences) {
+ part._parameters.forEach(
+ (ParameterElement parameter, List<_ParameterOccurrence> occurrences) {
// prepare argument
Expression argument = null;
for (Expression arg in arguments) {

Powered by Google App Engine
This is Rietveld 408576698