Index: pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart b/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart |
index e0182ccf38aa8283d3af32d298a08aa08094eaa0..22adfa3b97bb909882595d5f2f023bcd82bb31ef 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/convert_method_to_getter.dart |
@@ -124,7 +124,7 @@ class ConvertMethodToGetterRefactoringImpl extends RefactoringImpl |
{ |
CompilationUnit refUnit = refElement.unit; |
AstNode refNode = |
- new NodeLocator.con1(refRange.offset).searchWithin(refUnit); |
+ new NodeLocator(refRange.offset).searchWithin(refUnit); |
invocation = refNode.getAncestor((node) => node is MethodInvocation); |
} |
// we need invocation |