Index: pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart b/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart |
index 460896e949c3ebb950528d098458106444c76eca..23e03426174678ad57c5eb1436b720407c2394d8 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart |
@@ -86,7 +86,13 @@ class RenameConstructorRefactoringImpl extends RenameRefactoringImpl { |
} else { |
sourceRange = rangeStartLength(element.nameEnd, 0); |
} |
- String file = element.source.fullName; |
- return new SourceReference(file, sourceRange, element, true, true); |
+ return new SourceReference(new SearchMatch( |
+ element.context, |
+ element.library.source.uri.toString(), |
+ element.source.uri.toString(), |
+ MatchKind.DECLARATION, |
+ sourceRange, |
+ true, |
+ true)); |
} |
} |