Index: pkg/analysis_server/lib/src/services/refactoring/rename_import.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart b/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart |
index 6f910a9e3abb773f8e4eda08da6b95f56704852d..608eb736e25fc5368e06ca674d0d8dbb2216673f 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart |
@@ -101,7 +101,7 @@ class RenameImportRefactoringImpl extends RenameRefactoringImpl { |
SimpleIdentifier _getInterpolationIdentifier(SourceReference reference) { |
Source source = reference.element.source; |
CompilationUnit unit = context.parseCompilationUnit(source); |
- NodeLocator nodeLocator = new NodeLocator.con1(reference.range.offset); |
+ NodeLocator nodeLocator = new NodeLocator(reference.range.offset); |
AstNode node = nodeLocator.searchWithin(unit); |
if (node is SimpleIdentifier) { |
AstNode parent = node.parent; |