Index: pkg/analysis_server/lib/src/services/refactoring/inline_method.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart b/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart |
index fb8791ffdc2aca4c262a04985d6720ab97c26767..f3100efffe905af7bd27c6285b511d8a617c19cb 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/inline_method.dart |
@@ -324,7 +324,7 @@ class InlineMethodRefactoringImpl extends RefactoringImpl |
RefactoringStatus fatalStatus = new RefactoringStatus.fatal( |
'Method declaration or reference must be selected to activate this refactoring.'); |
// prepare selected SimpleIdentifier |
- AstNode node = new NodeLocator.con1(offset).searchWithin(unit); |
+ AstNode node = new NodeLocator(offset).searchWithin(unit); |
if (node is! SimpleIdentifier) { |
return fatalStatus; |
} |