Index: pkg/analysis_server/lib/src/services/correction/util.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart |
index 82f2652821af8769cecb3c758646fdaba19e5446..babfeeec4b548dbf35b51616b82feefb0abdb901 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/util.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart |
@@ -1317,6 +1317,16 @@ class CorrectionUtils { |
member is MethodDeclaration && member.isGetter); |
} |
+ ClassMemberLocation prepareNewMethodLocation( |
+ ClassDeclaration classDeclaration) { |
+ return prepareNewClassMemberLocation( |
+ classDeclaration, |
+ (member) => |
+ member is FieldDeclaration || |
+ member is ConstructorDeclaration || |
+ member is MethodDeclaration); |
+ } |
+ |
/** |
* Returns the source with indentation changed from [oldIndent] to |
* [newIndent], keeping indentation of lines relative to each other. |