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 22adfa3b97bb909882595d5f2f023bcd82bb31ef..0bcf9c2e7c16f4bab6543b566d0538bebeb5e68b 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 |
@@ -93,7 +93,7 @@ class ConvertMethodToGetterRefactoringImpl extends RefactoringImpl |
// prepare parameters |
FormalParameterList parameters; |
{ |
- AstNode node = element.node; |
+ AstNode node = element.computeNode(); |
if (node is MethodDeclaration) { |
parameters = node.parameters; |
} |