Index: pkg/analysis_server/lib/src/services/generated/util.dart |
diff --git a/pkg/analysis_server/lib/src/services/generated/util.dart b/pkg/analysis_server/lib/src/services/generated/util.dart |
index 06502579c299c83eda035ceb33f289926ab8a487..31a15c3025e5ef441b18dcfca89e3be66d7f1d8e 100644 |
--- a/pkg/analysis_server/lib/src/services/generated/util.dart |
+++ b/pkg/analysis_server/lib/src/services/generated/util.dart |
@@ -83,8 +83,7 @@ class AssistContext { |
*/ |
AstNode get coveredNode { |
if (_coveredNode == null) { |
- NodeLocator locator = |
- new NodeLocator.con2(selectionOffset, selectionOffset); |
+ NodeLocator locator = new NodeLocator(selectionOffset, selectionOffset); |
_coveredNode = locator.searchWithin(compilationUnit); |
} |
return _coveredNode; |
@@ -95,8 +94,8 @@ class AssistContext { |
*/ |
AstNode get coveringNode { |
if (_coveringNode == null) { |
- NodeLocator locator = new NodeLocator.con2( |
- selectionOffset, selectionOffset + selectionLength); |
+ NodeLocator locator = |
+ new NodeLocator(selectionOffset, selectionOffset + selectionLength); |
_coveringNode = locator.searchWithin(compilationUnit); |
} |
return _coveringNode; |
@@ -935,8 +934,7 @@ class CorrectionUtils { |
/** |
* @return the [AstNode] that encloses the given offset. |
*/ |
- AstNode findNode(int offset) => |
- new NodeLocator.con1(offset).searchWithin(unit); |
+ AstNode findNode(int offset) => new NodeLocator(offset).searchWithin(unit); |
/** |
* TODO(scheglov) replace with nodes once there will be [CompilationUnit.comments]. |