| Index: pkg/analysis_server/test/services/correction/assist_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart
|
| index d37d3e635eda96b82ef63508ce6e2491eaf25337..c6a64b40c366d7b619675988c810ab59f94ad5f7 100644
|
| --- a/pkg/analysis_server/test/services/correction/assist_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/assist_test.dart
|
| @@ -442,6 +442,36 @@ fff() => 42;
|
| ''');
|
| }
|
|
|
| + void test_convertToExpressionBody_OK_constructor() {
|
| + _indexTestUnit('''
|
| +class A {
|
| + factory A() {
|
| + return null;
|
| + }
|
| +}
|
| +''');
|
| + assertHasAssistAt('A()', AssistKind.CONVERT_INTO_EXPRESSION_BODY, '''
|
| +class A {
|
| + factory A() => null;
|
| +}
|
| +''');
|
| + }
|
| +
|
| + void test_convertToBlockBody_OK_constructor() {
|
| + _indexTestUnit('''
|
| +class A {
|
| + factory A() => null;
|
| +}
|
| +''');
|
| + assertHasAssistAt('A()', AssistKind.CONVERT_INTO_BLOCK_BODY, '''
|
| +class A {
|
| + factory A() {
|
| + return null;
|
| + }
|
| +}
|
| +''');
|
| + }
|
| +
|
| void test_convertToExpressionBody_OK_method_onBlock() {
|
| _indexTestUnit('''
|
| class A {
|
|
|