| Index: pkg/analysis_server/test/services/correction/fix_test.dart
|
| diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| index 853a4488837dafc316da747af9ec0f5dcc30426f..b0592797e9817c9d79a68aa5b647258ccee42969 100644
|
| --- a/pkg/analysis_server/test/services/correction/fix_test.dart
|
| +++ b/pkg/analysis_server/test/services/correction/fix_test.dart
|
| @@ -1404,6 +1404,31 @@ class B {
|
| ''');
|
| }
|
|
|
| + test_createField_getter_qualified_propagatedType() async {
|
| + resolveTestUnit('''
|
| +class A {
|
| + A get self => this;
|
| +}
|
| +main() {
|
| + var a = new A();
|
| + int v = a.self.test;
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.CREATE_FIELD,
|
| + '''
|
| +class A {
|
| + int test;
|
| +
|
| + A get self => this;
|
| +}
|
| +main() {
|
| + var a = new A();
|
| + int v = a.self.test;
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_createField_getter_unqualified_instance_asInvocationArgument() async {
|
| resolveTestUnit('''
|
| class A {
|
| @@ -1983,6 +2008,31 @@ class B {
|
| ''');
|
| }
|
|
|
| + test_createGetter_qualified_propagatedType() async {
|
| + resolveTestUnit('''
|
| +class A {
|
| + A get self => this;
|
| +}
|
| +main() {
|
| + var a = new A();
|
| + int v = a.self.test;
|
| +}
|
| +''');
|
| + await assertHasFix(
|
| + DartFixKind.CREATE_GETTER,
|
| + '''
|
| +class A {
|
| + A get self => this;
|
| +
|
| + int get test => null;
|
| +}
|
| +main() {
|
| + var a = new A();
|
| + int v = a.self.test;
|
| +}
|
| +''');
|
| + }
|
| +
|
| test_createGetter_setterContext() async {
|
| resolveTestUnit('''
|
| class A {
|
|
|