Index: pkg/analysis_server/lib/src/services/refactoring/extract_method.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart |
index 2f85e839c2c76574c82478a972dd410b6e83c74b..be9162d6ded1eed0202dd45c726d6deae8acd23b 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart |
@@ -125,7 +125,7 @@ class ExtractMethodRefactoringImpl extends RefactoringImpl |
@override |
String get refactoringName { |
- AstNode node = new NodeLocator.con1(selectionOffset).searchWithin(unit); |
+ AstNode node = new NodeLocator(selectionOffset).searchWithin(unit); |
if (node != null && |
node.getAncestor((node) => node is ClassDeclaration) != null) { |
return 'Extract Method'; |