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

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

Issue 881943002: Fix for 'Convert Method to Getter' when multiple files are changed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/test/services/refactoring/convert_getter_to_method_test.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/convert_method_to_getter.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart b/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart
index 6b63f7692fe243490679bfa642e9df8f83ae55a7..55cc6a7fab7ef551fb7c964d48b9eddc6b270d4f 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart
@@ -132,7 +132,7 @@ class ConvertMethodToGetterRefactoringImpl extends RefactoringImpl implements
if (invocation != null) {
SourceRange range = rangeEndEnd(refRange, invocation);
SourceEdit edit = newSourceEdit_range(range, '');
- doSourceChange_addElementEdit(change, element, edit);
+ doSourceChange_addElementEdit(change, refElement, edit);
}
}
});
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/refactoring/convert_getter_to_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698