| Index: pkg/analysis_server/test/services/refactoring/extract_method_test.dart
|
| diff --git a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
|
| index a092f1e78a71491d9d4b8a217d4fe756e7b7c76d..45abe94d47b49dda6fbaa9a5643ce12b04a3141e 100644
|
| --- a/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
|
| +++ b/pkg/analysis_server/test/services/refactoring/extract_method_test.dart
|
| @@ -623,6 +623,20 @@ main() {
|
| "Operation not applicable to a while statement's expression and body.");
|
| }
|
|
|
| + test_canExtractGetter_false_closure() async {
|
| + indexTestUnit('''
|
| +main() {
|
| + useFunction((_) => true);
|
| +}
|
| +useFunction(filter(String p)) {}
|
| +''');
|
| + _createRefactoringForString('(_) => true');
|
| + // apply refactoring
|
| + await assertRefactoringConditionsOK();
|
| + expect(refactoring.canCreateGetter, false);
|
| + expect(refactoring.createGetter, false);
|
| + }
|
| +
|
| test_canExtractGetter_false_fieldAssignment() async {
|
| indexTestUnit('''
|
| class A {
|
|
|