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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java

Issue 23498016: Update only unique references during rename refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java
index c0f202dc7babc0ca34d9989240c185259e912870..0a25b3f7c2eb5e45a41abac84b5364b5184dae87 100644
--- a/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine.services/src/com/google/dart/engine/services/internal/refactoring/RenameLibraryRefactoringImpl.java
@@ -72,6 +72,7 @@ public class RenameLibraryRefactoringImpl extends RenameRefactoringImpl {
}
// update references
List<SearchMatch> references = searchEngine.searchReferences(element, null, null);
+ references = getUniqueMatches(references);
for (SearchMatch reference : references) {
Source refSource = reference.getElement().getSource();
SourceChange refChange = changeManager.get(refSource);

Powered by Google App Engine
This is Rietveld 408576698