| Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| index 92d9b20eef58b339bf2b3111c038952227c10d2e..c90d69c27f5ab01a44f301a8c4018e084a70fd4e 100644
|
| --- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| +++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
|
| @@ -1987,14 +1987,14 @@ class C {
|
| checkElementText(library, r'''
|
| class C {
|
| int x;
|
| - C({int this.x});
|
| + C({int this.x: 42});
|
| }
|
| ''');
|
| } else {
|
| checkElementText(library, r'''
|
| class C {
|
| int x;
|
| - C({int this.x});
|
| + C({int this.x: 42});
|
| }
|
| ''');
|
| }
|
| @@ -2025,14 +2025,14 @@ class C {
|
| checkElementText(library, r'''
|
| class C {
|
| int x;
|
| - C([int this.x]);
|
| + C([int this.x = 42]);
|
| }
|
| ''');
|
| } else {
|
| checkElementText(library, r'''
|
| class C {
|
| int x;
|
| - C([int this.x]);
|
| + C([int this.x = 42]);
|
| }
|
| ''');
|
| }
|
| @@ -3821,7 +3821,8 @@ int foo() => 42;
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C({dynamic this.x});
|
| + const C({dynamic this.x:
|
| + foo/*location: test.dart;foo*/});
|
| }
|
| int foo() {}
|
| ''');
|
| @@ -3829,7 +3830,8 @@ int foo() {}
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C({dynamic this.x});
|
| + const C({dynamic this.x:
|
| + foo/*location: test.dart;foo*/});
|
| }
|
| int foo() {}
|
| ''');
|
| @@ -3847,14 +3849,14 @@ class C {
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C({dynamic this.x});
|
| + const C({dynamic this.x: 1 + 2});
|
| }
|
| ''');
|
| } else {
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C({dynamic this.x});
|
| + const C({dynamic this.x: 1 + 2});
|
| }
|
| ''');
|
| }
|
| @@ -3871,14 +3873,14 @@ class C {
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C([dynamic this.x]);
|
| + const C([dynamic this.x = 1 + 2]);
|
| }
|
| ''');
|
| } else {
|
| checkElementText(library, r'''
|
| class C {
|
| final dynamic x;
|
| - const C([dynamic this.x]);
|
| + const C([dynamic this.x = 1 + 2]);
|
| }
|
| ''');
|
| }
|
| @@ -9778,7 +9780,7 @@ const dynamic a = null;
|
| class C {
|
| dynamic x;
|
| C([@
|
| - a/*location: test.dart;a?*/ dynamic this.x]);
|
| + a/*location: test.dart;a?*/ dynamic this.x = null]);
|
| }
|
| const dynamic a = null;
|
| ''');
|
| @@ -9787,7 +9789,7 @@ const dynamic a = null;
|
| class C {
|
| dynamic x;
|
| C([@
|
| - a/*location: test.dart;a?*/ dynamic this.x]);
|
| + a/*location: test.dart;a?*/ dynamic this.x = null]);
|
| }
|
| const dynamic a = null;
|
| ''');
|
| @@ -10951,16 +10953,16 @@ class C {
|
| checkElementText(library, r'''
|
| class C {
|
| dynamic x;
|
| - C.positional([dynamic this.x]);
|
| - C.named({dynamic this.x});
|
| + C.positional([dynamic this.x = 1]);
|
| + C.named({dynamic this.x: 1});
|
| }
|
| ''');
|
| } else {
|
| checkElementText(library, r'''
|
| class C {
|
| dynamic x;
|
| - C.positional([dynamic this.x]);
|
| - C.named({dynamic this.x});
|
| + C.positional([dynamic this.x = 1]);
|
| + C.named({dynamic this.x: 1});
|
| }
|
| ''');
|
| }
|
|
|