Index: pkg/analysis_server/lib/src/services/refactoring/convert_getter_to_method.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/convert_getter_to_method.dart b/pkg/analysis_server/lib/src/services/refactoring/convert_getter_to_method.dart |
index 884b4b3056f27bbe9caea36db10421e723170c22..aabe616d9faabfc22c57b05a1000c4e91ae94e85 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/convert_getter_to_method.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/convert_getter_to_method.dart |
@@ -85,7 +85,7 @@ class ConvertGetterToMethodRefactoringImpl extends RefactoringImpl |
// prepare "get" keyword |
Token getKeyword = null; |
{ |
- AstNode node = element.node; |
+ AstNode node = element.computeNode(); |
if (node is MethodDeclaration) { |
getKeyword = node.propertyKeyword; |
} else if (node is FunctionDeclaration) { |