Index: pkg/analysis_server/lib/src/services/refactoring/extract_local.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart |
index 8d7782c0db05499255a0057bceec6eb667153e3c..3acc98241340899527e2ad4d8941459931ee1c6c 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart |
@@ -319,7 +319,7 @@ class ExtractLocalRefactoringImpl extends RefactoringImpl |
List<AstNode> _findNodes(List<SourceRange> ranges) { |
List<AstNode> nodes = <AstNode>[]; |
for (SourceRange range in ranges) { |
- AstNode node = new NodeLocator.con1(range.offset).searchWithin(unit); |
+ AstNode node = new NodeLocator(range.offset).searchWithin(unit); |
nodes.add(node); |
} |
return nodes; |
@@ -402,7 +402,7 @@ class ExtractLocalRefactoringImpl extends RefactoringImpl |
AstNode enclosingFunction; |
{ |
AstNode selectionNode = |
- new NodeLocator.con1(selectionOffset).searchWithin(unit); |
+ new NodeLocator(selectionOffset).searchWithin(unit); |
enclosingFunction = getEnclosingExecutableNode(selectionNode); |
} |
// visit function |