From 586906847535835df83b62be991db45d29730305 Mon Sep 17 00:00:00 2001 From: sgrekhov Date: Tue, 18 Nov 2025 14:44:40 +0200 Subject: [PATCH] #3315. Rename experimental flag to `primary-constructors` --- .../Declaring-constructors/static_processing_A07_t01.dart | 2 +- .../Declaring-constructors/static_processing_A07_t02.dart | 2 +- .../Declaring-constructors/static_processing_A07_t03.dart | 2 +- .../Declaring-constructors/static_processing_A07_t04.dart | 2 +- .../Declaring-constructors/static_processing_A08_t01.dart | 2 +- .../Declaring-constructors/static_processing_A08_t02.dart | 2 +- .../Declaring-constructors/static_processing_A08_t03.dart | 2 +- .../Declaring-constructors/static_processing_A09_t01.dart | 2 +- .../Declaring-constructors/static_processing_A09_t03.dart | 2 +- .../Declaring-constructors/static_processing_A10_t01.dart | 2 +- .../Declaring-constructors/static_processing_A11_t01.dart | 2 +- .../Declaring-constructors/static_processing_A11_t02.dart | 2 +- .../Declaring-constructors/static_processing_A12_t01.dart | 2 +- .../Declaring-constructors/static_processing_A12_t02.dart | 2 +- .../Declaring-constructors/static_processing_A12_t03.dart | 2 +- .../Declaring-constructors/static_processing_A12_t04.dart | 2 +- .../Declaring-constructors/static_processing_A13_t01.dart | 2 +- .../Declaring-constructors/static_processing_A14_t01.dart | 2 +- .../Declaring-constructors/static_processing_A15_t01.dart | 2 +- .../Declaring-constructors/static_processing_A15_t02.dart | 2 +- .../Declaring-constructors/static_processing_A15_t03.dart | 2 +- .../Declaring-constructors/static_processing_A16_t01.dart | 2 +- .../Declaring-constructors/static_processing_A16_t02.dart | 2 +- .../Declaring-constructors/static_processing_A16_t03.dart | 2 +- .../Declaring-constructors/static_processing_A17_t01.dart | 2 +- .../Declaring-constructors/static_processing_A17_t02.dart | 2 +- .../Declaring-constructors/static_processing_A17_t03.dart | 2 +- .../Declaring-constructors/static_processing_A17_t04.dart | 2 +- .../Declaring-constructors/static_processing_A17_t05.dart | 2 +- .../Declaring-constructors/static_processing_A17_t06.dart | 2 +- .../Declaring-constructors/static_processing_A18_t01.dart | 2 +- .../Declaring-constructors/static_processing_A18_t02.dart | 2 +- .../Declaring-constructors/static_processing_A18_t03.dart | 2 +- .../Declaring-constructors/static_processing_A18_t04.dart | 2 +- .../Declaring-constructors/static_processing_A19_t01.dart | 2 +- .../Declaring-constructors/static_processing_A19_t02.dart | 2 +- .../Declaring-constructors/static_processing_A19_t03.dart | 2 +- .../Declaring-constructors/static_processing_A19_t04.dart | 2 +- .../Declaring-constructors/static_processing_A20_t01.dart | 2 +- .../Declaring-constructors/static_processing_A20_t02.dart | 2 +- .../Declaring-constructors/static_processing_A20_t03.dart | 2 +- .../Declaring-constructors/static_processing_A20_t04.dart | 2 +- .../Declaring-constructors/static_processing_A21_t01.dart | 2 +- .../Declaring-constructors/static_processing_A21_t02.dart | 2 +- .../Declaring-constructors/static_processing_A21_t03.dart | 2 +- .../Declaring-constructors/static_processing_A21_t04.dart | 2 +- .../Declaring-constructors/static_processing_A21_t05.dart | 2 +- .../Declaring-constructors/static_processing_A21_t06.dart | 2 +- .../Declaring-constructors/static_processing_A21_t07.dart | 2 +- .../Declaring-constructors/static_processing_A21_t08.dart | 2 +- .../Declaring-constructors/static_processing_A21_t09.dart | 2 +- .../Declaring-constructors/static_processing_A21_t10.dart | 2 +- .../Declaring-constructors/static_processing_A21_t11.dart | 2 +- .../Declaring-constructors/static_processing_A21_t12.dart | 2 +- .../Declaring-constructors/static_processing_A22_t01.dart | 2 +- .../Declaring-constructors/static_processing_A22_t02.dart | 2 +- .../Declaring-constructors/static_processing_A22_t03.dart | 2 +- .../Declaring-constructors/static_processing_A22_t04.dart | 2 +- .../Declaring-constructors/static_processing_A22_t05.dart | 2 +- .../Declaring-constructors/static_processing_A22_t06.dart | 2 +- .../Declaring-constructors/static_processing_A22_t07.dart | 2 +- .../Declaring-constructors/static_processing_A22_t08.dart | 2 +- .../Declaring-constructors/static_processing_A23_t01.dart | 2 +- .../Declaring-constructors/static_processing_A23_t02.dart | 2 +- .../Declaring-constructors/static_processing_A23_t03.dart | 2 +- .../Declaring-constructors/static_processing_A23_t04.dart | 2 +- .../Declaring-constructors/static_processing_A24_t01.dart | 2 +- .../Declaring-constructors/static_processing_A24_t02.dart | 2 +- .../Declaring-constructors/static_processing_A24_t03.dart | 2 +- .../Declaring-constructors/static_processing_A24_t04.dart | 2 +- .../Declaring-constructors/static_processing_A24_t05.dart | 2 +- .../Declaring-constructors/static_processing_A24_t06.dart | 2 +- .../Declaring-constructors/static_processing_A25_t01.dart | 2 +- .../Declaring-constructors/static_processing_A25_t02.dart | 2 +- .../Declaring-constructors/static_processing_A25_t03.dart | 2 +- .../Declaring-constructors/static_processing_A25_t04.dart | 2 +- .../Declaring-constructors/static_processing_A25_t05.dart | 2 +- LanguageFeatures/Extension-types/syntax_A04_t06.dart | 2 +- LanguageFeatures/Extension-types/syntax_A04_t08.dart | 2 +- LanguageFeatures/Extension-types/syntax_A07_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A01_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A01_t02.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A01_t03.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A01_t04.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A01_t05.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t02.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t03.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t04.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t05.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t06.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t07.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A02_t08.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A03_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A04_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A04_t02.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A04_t03.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t01.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t02.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t03.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t04.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t05.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t06.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t07.dart | 2 +- LanguageFeatures/Primary-constructors/grammar_A05_t08.dart | 2 +- .../Primary-constructors/static_processing_A01_t01.dart | 2 +- .../Primary-constructors/static_processing_A01_t02.dart | 2 +- .../Primary-constructors/static_processing_A01_t03.dart | 2 +- .../Primary-constructors/static_processing_A01_t04.dart | 2 +- .../Primary-constructors/static_processing_A01_t05.dart | 2 +- .../Primary-constructors/static_processing_A01_t06.dart | 2 +- .../Primary-constructors/static_processing_A01_t07.dart | 2 +- .../Primary-constructors/static_processing_A01_t08.dart | 2 +- .../Primary-constructors/static_processing_A01_t09.dart | 2 +- .../Primary-constructors/static_processing_A01_t10.dart | 2 +- .../Primary-constructors/static_processing_A01_t11.dart | 2 +- .../Primary-constructors/static_processing_A02_t01.dart | 2 +- .../Primary-constructors/static_processing_A02_t02.dart | 2 +- .../Primary-constructors/static_processing_A02_t03.dart | 2 +- .../Primary-constructors/static_processing_A02_t04.dart | 2 +- .../Primary-constructors/static_processing_A02_t05.dart | 2 +- .../Primary-constructors/static_processing_A02_t06.dart | 2 +- .../Primary-constructors/static_processing_A02_t07.dart | 2 +- .../Primary-constructors/static_processing_A02_t08.dart | 2 +- .../Primary-constructors/static_processing_A02_t09.dart | 2 +- .../Primary-constructors/static_processing_A02_t10.dart | 2 +- .../Primary-constructors/static_processing_A02_t11.dart | 2 +- .../Primary-constructors/static_processing_A02_t12.dart | 2 +- .../Primary-constructors/static_processing_A02_t13.dart | 2 +- .../Primary-constructors/static_processing_A02_t14.dart | 2 +- .../Primary-constructors/static_processing_A03_t01.dart | 2 +- .../Primary-constructors/static_processing_A03_t02.dart | 2 +- .../Primary-constructors/static_processing_A03_t03.dart | 2 +- .../Primary-constructors/static_processing_A04_t01.dart | 2 +- .../Primary-constructors/static_processing_A04_t02.dart | 2 +- .../Primary-constructors/static_processing_A04_t03.dart | 2 +- .../Primary-constructors/static_processing_A04_t04.dart | 2 +- .../Primary-constructors/static_processing_A04_t05.dart | 2 +- .../Primary-constructors/static_processing_A04_t07.dart | 2 +- .../Primary-constructors/static_processing_A04_t08.dart | 2 +- .../Primary-constructors/static_processing_A04_t09.dart | 2 +- .../Primary-constructors/static_processing_A04_t10.dart | 2 +- .../Primary-constructors/static_processing_A04_t11.dart | 2 +- .../Primary-constructors/static_processing_A05_t01.dart | 2 +- .../Primary-constructors/static_processing_A05_t02.dart | 2 +- .../Primary-constructors/static_processing_A05_t03.dart | 2 +- .../Primary-constructors/static_processing_A06_t01.dart | 2 +- .../Primary-constructors/static_processing_A06_t02.dart | 2 +- .../Primary-constructors/static_processing_A06_t03.dart | 2 +- .../Primary-constructors/static_processing_A06_t04.dart | 2 +- .../Primary-constructors/static_processing_A06_t05.dart | 2 +- .../Primary-constructors/static_processing_A06_t06.dart | 2 +- .../Primary-constructors/static_processing_A06_t07.dart | 2 +- .../Private-named-parameters/static_semantics_A01_t03.dart | 2 +- .../Private-named-parameters/static_semantics_A01_t05.dart | 2 +- .../Private-named-parameters/static_semantics_A02_t02.dart | 2 +- .../Private-named-parameters/static_semantics_A02_t04.dart | 2 +- .../Private-named-parameters/static_semantics_A03_t02.dart | 2 +- .../Private-named-parameters/static_semantics_A03_t04.dart | 2 +- .../Private-named-parameters/static_semantics_A04_t02.dart | 2 +- .../Private-named-parameters/static_semantics_A05_t02.dart | 2 +- .../Private-named-parameters/static_semantics_A05_t04.dart | 2 +- LanguageFeatures/Super-parameters/semantics_A03_t06.dart | 2 +- LanguageFeatures/Super-parameters/semantics_A03_t07.dart | 2 +- LanguageFeatures/Super-parameters/semantics_A05_t03.dart | 2 +- 165 files changed, 165 insertions(+), 165 deletions(-) diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A07_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A07_t01.dart index ad4d75879c..f069c218d9 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A07_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A07_t01.dart @@ -16,7 +16,7 @@ /// modifier `covariant`. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(covariant String this.x) { // ^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A07_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A07_t02.dart index 921763d948..063c74ec56 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A07_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A07_t02.dart @@ -16,7 +16,7 @@ /// modifier `covariant`. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class A { String x; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A07_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A07_t03.dart index b8633b40ca..ddb728903d 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A07_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A07_t03.dart @@ -16,7 +16,7 @@ /// modifier `covariant`. Test extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1(covariant String this.x) { // ^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A07_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A07_t04.dart index 50db7dfc31..0c350e2ab6 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A07_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A07_t04.dart @@ -16,7 +16,7 @@ /// modifier `covariant`. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1(covariant String this.x) { // ^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A08_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A08_t01.dart index b24991904e..d9f19afd9d 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A08_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A08_t01.dart @@ -16,7 +16,7 @@ /// Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(covariant final String x) {} // ^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A08_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A08_t02.dart index 14f8e22a5f..c572620630 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A08_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A08_t02.dart @@ -16,7 +16,7 @@ /// Test extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1(covariant final String x) {} // ^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A08_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A08_t03.dart index 6623ff0408..3b678a710b 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A08_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A08_t03.dart @@ -16,7 +16,7 @@ /// Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1(covariant final String x) { // ^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A09_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A09_t01.dart index f4b072c4a1..75dea6235f 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A09_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A09_t01.dart @@ -14,7 +14,7 @@ /// classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(covariant String x) {} // ^^^^^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A09_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A09_t03.dart index bf30e2b9ee..3aeacd8ec1 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A09_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A09_t03.dart @@ -15,7 +15,7 @@ /// enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1(covariant String x) { // ^^^^^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A10_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A10_t01.dart index e7b99b8b17..613a50c593 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A10_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A10_t01.dart @@ -15,7 +15,7 @@ /// declaring constructor has the modifier `covariant`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A11_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A11_t01.dart index e55c993f70..72702a2088 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A11_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A11_t01.dart @@ -30,7 +30,7 @@ /// type `T` then the parameter `p` has declared type `T` as well. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A11_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A11_t02.dart index 6abdd2fb77..d56af1ac66 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A11_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A11_t02.dart @@ -31,7 +31,7 @@ /// well. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A12_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A12_t01.dart index 4187b7e20a..9c9d38e4e3 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A12_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A12_t01.dart @@ -29,7 +29,7 @@ /// has the declared type `T`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A12_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A12_t02.dart index baadae7a16..fa874087a9 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A12_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A12_t02.dart @@ -29,7 +29,7 @@ /// type `Object?`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A12_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A12_t03.dart index c5d1aa08fb..30bb51ed58 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A12_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A12_t03.dart @@ -27,7 +27,7 @@ /// value then `p` is considered to have the declared type `Object?`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A12_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A12_t04.dart index 0e4afb6b63..d4b54fea22 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A12_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A12_t04.dart @@ -28,7 +28,7 @@ /// `dynamic`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var x, [var y]); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A13_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A13_t01.dart index 91855bb533..9f51871a4b 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A13_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A13_t01.dart @@ -22,7 +22,7 @@ /// the declaring constructor is the body scope of the class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A14_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A14_t01.dart index 8384468fe5..37b832a56c 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A14_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A14_t01.dart @@ -24,7 +24,7 @@ /// modifier `const`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A15_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A15_t01.dart index 31f42ca239..1e48c0f071 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A15_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A15_t01.dart @@ -23,7 +23,7 @@ /// followed by `.id` then the name of the constructor is `C.id`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A15_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A15_t02.dart index 11a9a90d34..2be8b5cd65 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A15_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A15_t02.dart @@ -23,7 +23,7 @@ /// followed by `.new` then the name of the constructor is `C`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1.new(var int v); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A15_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A15_t03.dart index 1cac30332e..0e51477324 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A15_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A15_t03.dart @@ -23,7 +23,7 @@ /// followed by `.` then the name of the constructor is `C`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var int v); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A16_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A16_t01.dart index e6edaedee4..d5cafdb265 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A16_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A16_t01.dart @@ -19,7 +19,7 @@ /// then the name of the constructor is `C.id`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A16_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A16_t02.dart index 1c83633747..88f4078bea 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A16_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A16_t02.dart @@ -19,7 +19,7 @@ /// then the name of the constructor is `C`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { this.new(var int v); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A16_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A16_t03.dart index a02a930562..dda8bc4bc8 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A16_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A16_t03.dart @@ -19,7 +19,7 @@ /// then the name of the constructor is `C`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { this(var int v); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t01.dart index 8f63671b9b..00f7e7f5f2 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t01.dart @@ -23,7 +23,7 @@ /// same order, and mandatory positional parameters remain mandatory. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t02.dart index 1249deaf5c..defae2022f 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t02.dart @@ -24,7 +24,7 @@ /// their order and default values. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t03.dart index 7ee4dcbc6c..4816035c9e 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t03.dart @@ -23,7 +23,7 @@ /// optional and preserve their names and default values. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t04.dart index 42480e1cfa..b11717812b 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t04.dart @@ -23,7 +23,7 @@ /// required and preserve their names and default values. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t05.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t05.dart index 73e4bfcb66..b1fecc7605 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t05.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t05.dart @@ -24,7 +24,7 @@ /// missing parameter. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(final int v1, var String v2, this.v3) { bool v3; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A17_t06.dart b/LanguageFeatures/Declaring-constructors/static_processing_A17_t06.dart index 8ed826fd92..ccb54a2f1a 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A17_t06.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A17_t06.dart @@ -24,7 +24,7 @@ /// required parameter. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({required this.v1, required var String v2, required final bool v3}) { int v1; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A18_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A18_t01.dart index 4b5fde04c8..9b7353daf9 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A18_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A18_t01.dart @@ -18,7 +18,7 @@ /// default value. Test required parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A18_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A18_t02.dart index a6ada6cf31..3b14ce0fa3 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A18_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A18_t02.dart @@ -18,7 +18,7 @@ /// default value. Test optional positional parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A18_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A18_t03.dart index e76dd0742e..b2df327717 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A18_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A18_t03.dart @@ -18,7 +18,7 @@ /// default value. Test optional named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A18_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A18_t04.dart index 669fc9cf79..dd8fb4f61c 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A18_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A18_t04.dart @@ -18,7 +18,7 @@ /// default value. Test required named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A19_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A19_t01.dart index 0351042dfb..dc6de15156 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A19_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A19_t01.dart @@ -19,7 +19,7 @@ /// default value. Test required parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A19_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A19_t02.dart index 3b7f2568f2..075ef070e9 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A19_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A19_t02.dart @@ -19,7 +19,7 @@ /// default value. Test optional positional parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A19_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A19_t03.dart index 04812f3bab..374b397b31 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A19_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A19_t03.dart @@ -19,7 +19,7 @@ /// default value. Test optional named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A19_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A19_t04.dart index d10aa423fc..d5379c8217 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A19_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A19_t04.dart @@ -19,7 +19,7 @@ /// default value. Test required named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A20_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A20_t01.dart index 5e2ebfb865..a4e0a75998 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A20_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A20_t01.dart @@ -20,7 +20,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A20_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A20_t02.dart index dcbcdf1d9e..d085b7f1d5 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A20_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A20_t02.dart @@ -20,7 +20,7 @@ /// positional parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A20_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A20_t03.dart index 7882545932..dc8c5f4744 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A20_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A20_t03.dart @@ -20,7 +20,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A20_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A20_t04.dart index c8a0cd9028..7fd4b57ea5 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A20_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A20_t04.dart @@ -20,7 +20,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t01.dart index 7e2a90ccb9..9342fdb39f 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t01.dart @@ -27,7 +27,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t02.dart index e9e0709da1..71eb6f4047 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t02.dart @@ -27,7 +27,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t03.dart index ae9c233275..e8abe9f45e 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t03.dart @@ -27,7 +27,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t04.dart index 841a21b686..d2e4fc1173 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t04.dart @@ -27,7 +27,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t05.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t05.dart index a69d02391c..4c9e2075ce 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t05.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t05.dart @@ -26,7 +26,7 @@ /// `T p;` (without `final`) is added to `D2`. Test mandatory parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t06.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t06.dart index 4e8e0d7b32..5233f106fb 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t06.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t06.dart @@ -27,7 +27,7 @@ /// parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t07.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t07.dart index 3dd5fcd225..fad1a98a1e 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t07.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t07.dart @@ -26,7 +26,7 @@ /// `T p;` (without `final`) is added to `D2`. Test optional named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t08.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t08.dart index f31f3efa1a..2c5785db25 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t08.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t08.dart @@ -26,7 +26,7 @@ /// `T p;` (without `final`) is added to `D2`. Test required named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t09.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t09.dart index bd53c306a3..19bf8eb606 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t09.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t09.dart @@ -25,7 +25,7 @@ /// constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(final T v); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t10.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t10.dart index a1e657361f..68cce08c77 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t10.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t10.dart @@ -25,7 +25,7 @@ /// declaring constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1([final T? v]); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t11.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t11.dart index 6cfdec2f03..3e99102816 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t11.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t11.dart @@ -25,7 +25,7 @@ /// declaring constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({final T? v}); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A21_t12.dart b/LanguageFeatures/Declaring-constructors/static_processing_A21_t12.dart index 73487072b1..5216443bf4 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A21_t12.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A21_t12.dart @@ -25,7 +25,7 @@ /// declaring constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({required final T v}); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t01.dart index ff055d5828..b2b1e03147 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t01.dart @@ -26,7 +26,7 @@ /// member named `p`. Test mandatory parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var String v1, final T v2, var bool v3) { String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t02.dart index 815c676785..951088a1aa 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t02.dart @@ -26,7 +26,7 @@ /// member named `p`. Test optional positional parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1([var String v1 = "", final T? v2, var bool v3 = true]) { String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t03.dart index b7b0c01f6c..0220e68a93 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t03.dart @@ -26,7 +26,7 @@ /// member named `p`. Test optional named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({var String v1 = "", final T? v2, var bool v3 = true}) { String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t04.dart index 1f0c2348fb..97e5362f65 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t04.dart @@ -26,7 +26,7 @@ /// member named `p`. Test required named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({required var int v1, required final T v2, required var bool v3}) { int get v1 => 0; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t05.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t05.dart index e265351dfd..35a2a68980 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t05.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t05.dart @@ -26,7 +26,7 @@ /// member named `p`. Test mandatory parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var String v1, final T v2, var bool v3) { static String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t06.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t06.dart index d1acd04264..6229858d1c 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t06.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t06.dart @@ -26,7 +26,7 @@ /// member named `p`. Test optional positional parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1([var String v1 = "", final T? v2, var bool v3 = true]) { static String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t07.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t07.dart index 88968c5396..8060e169ea 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t07.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t07.dart @@ -26,7 +26,7 @@ /// member named `p`. Test optional named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({var String v1 = "", final T? v2, var bool v3 = true}) { static String get v1 => ""; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A22_t08.dart b/LanguageFeatures/Declaring-constructors/static_processing_A22_t08.dart index 112ce0b0ae..04424caa37 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A22_t08.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A22_t08.dart @@ -26,7 +26,7 @@ /// member named `p`. Test required named parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1({required var int v1, required final T v2, required var bool v3}) { static int get v1 => 0; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A23_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A23_t01.dart index aa529425ce..bea6e74c48 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A23_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A23_t01.dart @@ -25,7 +25,7 @@ /// Test declaring vs. initializing formals. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var T v, this.v); // ^^^^^^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A23_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A23_t02.dart index c98118290e..62e22016db 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A23_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A23_t02.dart @@ -25,7 +25,7 @@ /// Test declaring vs. super parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class A { final T? v; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A23_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A23_t03.dart index 8157f1715c..4f3ea83b50 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A23_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A23_t03.dart @@ -25,7 +25,7 @@ /// Test declaring vs. declaring parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var T v, var T v); // ^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A23_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A23_t04.dart index 938c7dcf1d..8e8d775535 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A23_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A23_t04.dart @@ -25,7 +25,7 @@ /// Test declaring vs. plain non-declaring parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var T v, T v); // ^ diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t01.dart index 9d4571a91f..91dbad47dc 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t01.dart @@ -17,7 +17,7 @@ /// then `k2` has an initializer list with the same elements. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t02.dart index 7cc67dd514..e4b64b8a0b 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t02.dart @@ -18,7 +18,7 @@ /// the end of the list. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class A(int z); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t03.dart index 23eedcfe19..9fbb6757a4 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t03.dart @@ -19,7 +19,7 @@ /// classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var int x) { this: x = 1; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t04.dart index 7841c9d093..ae6cd9ff54 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t04.dart @@ -19,7 +19,7 @@ /// extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1(int x) { this: x = 1; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t05.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t05.dart index 47df20a933..99cf851979 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t05.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t05.dart @@ -18,7 +18,7 @@ /// parameter of a declaring constructor and in the initializer list. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1(final int x) { e0(0); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A24_t06.dart b/LanguageFeatures/Declaring-constructors/static_processing_A24_t06.dart index 3fae3d99ba..07c29fdddb 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A24_t06.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A24_t06.dart @@ -17,7 +17,7 @@ /// is initialized in the initializer list more than once. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(int v) { int x; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A25_t01.dart b/LanguageFeatures/Declaring-constructors/static_processing_A25_t01.dart index 3502e16e3d..52a79fe4a9 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A25_t01.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A25_t01.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A25_t02.dart b/LanguageFeatures/Declaring-constructors/static_processing_A25_t02.dart index 3d9e1b522a..d0606d1396 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A25_t02.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A25_t02.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A25_t03.dart b/LanguageFeatures/Declaring-constructors/static_processing_A25_t03.dart index d9f762d202..7c761d5844 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A25_t03.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A25_t03.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A25_t04.dart b/LanguageFeatures/Declaring-constructors/static_processing_A25_t04.dart index 7964e05b8d..171b905286 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A25_t04.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A25_t04.dart @@ -11,7 +11,7 @@ /// used as a constructor name in the factory constructor redirection. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1(); diff --git a/LanguageFeatures/Declaring-constructors/static_processing_A25_t05.dart b/LanguageFeatures/Declaring-constructors/static_processing_A25_t05.dart index 86266b2722..830a0ed7ce 100644 --- a/LanguageFeatures/Declaring-constructors/static_processing_A25_t05.dart +++ b/LanguageFeatures/Declaring-constructors/static_processing_A25_t05.dart @@ -11,7 +11,7 @@ /// used as a constructor name in the initializer list. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1(); diff --git a/LanguageFeatures/Extension-types/syntax_A04_t06.dart b/LanguageFeatures/Extension-types/syntax_A04_t06.dart index 374a7fa925..bf3038bd4f 100644 --- a/LanguageFeatures/Extension-types/syntax_A04_t06.dart +++ b/LanguageFeatures/Extension-types/syntax_A04_t06.dart @@ -23,7 +23,7 @@ /// `representationDeclaration` is `var` or `var type`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1(var id) {} // ^^^ diff --git a/LanguageFeatures/Extension-types/syntax_A04_t08.dart b/LanguageFeatures/Extension-types/syntax_A04_t08.dart index 0b02d7313a..78e64bf297 100644 --- a/LanguageFeatures/Extension-types/syntax_A04_t08.dart +++ b/LanguageFeatures/Extension-types/syntax_A04_t08.dart @@ -23,7 +23,7 @@ /// `representationDeclaration` is `final` or `final type`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Extension-types/syntax_A07_t01.dart b/LanguageFeatures/Extension-types/syntax_A07_t01.dart index 4b8ae2697e..24c92b6ab6 100644 --- a/LanguageFeatures/Extension-types/syntax_A07_t01.dart +++ b/LanguageFeatures/Extension-types/syntax_A07_t01.dart @@ -23,7 +23,7 @@ /// has no body /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A01_t01.dart b/LanguageFeatures/Primary-constructors/grammar_A01_t01.dart index 3858712cc6..d27d3087d8 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A01_t01.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A01_t01.dart @@ -11,7 +11,7 @@ /// body is `;` is treated as a declaration whose body is `{}`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A01_t02.dart b/LanguageFeatures/Primary-constructors/grammar_A01_t02.dart index 8c5fa260c7..a09a1f7374 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A01_t02.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A01_t02.dart @@ -11,7 +11,7 @@ /// an enum declaration whose body is `{}`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E0(); // ^^ diff --git a/LanguageFeatures/Primary-constructors/grammar_A01_t03.dart b/LanguageFeatures/Primary-constructors/grammar_A01_t03.dart index b1cf51cc1e..38c60f301e 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A01_t03.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A01_t03.dart @@ -11,7 +11,7 @@ /// treated as an extension type declaration whose body is `{}`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1; // ^^^ diff --git a/LanguageFeatures/Primary-constructors/grammar_A01_t04.dart b/LanguageFeatures/Primary-constructors/grammar_A01_t04.dart index 4b16abd3f2..cda55bc902 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A01_t04.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A01_t04.dart @@ -11,7 +11,7 @@ /// whose body is `;`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C {} diff --git a/LanguageFeatures/Primary-constructors/grammar_A01_t05.dart b/LanguageFeatures/Primary-constructors/grammar_A01_t05.dart index 43e5f48574..88bf38a4ac 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A01_t05.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A01_t05.dart @@ -11,7 +11,7 @@ /// body is `;`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin M; // ^ diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t01.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t01.dart index 8f93cb2851..f94ee89c47 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t01.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t01.dart @@ -18,7 +18,7 @@ /// return type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C { C.create(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t02.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t02.dart index b588b1275a..de02d2b0d8 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t02.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t02.dart @@ -18,7 +18,7 @@ /// implicitly inferred return type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C { const C.create(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t03.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t03.dart index 84bfd56c50..31847d1c09 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t03.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t03.dart @@ -18,7 +18,7 @@ /// an implicitly inferred return type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors class C1 { C1.create(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t04.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t04.dart index 9a00ea3c37..3619a5f6a0 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t04.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t04.dart @@ -18,7 +18,7 @@ /// named `factory` with an implicitly inferred return type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1.create(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t05.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t05.dart index cd80806d92..02e79c883d 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t05.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t05.dart @@ -17,7 +17,7 @@ /// `external augment` followed by `factory`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors class C1 { C1.create(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t06.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t06.dart index c694772a6a..333efef3a1 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t06.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t06.dart @@ -16,7 +16,7 @@ /// `factory` if the first token of a `` is not `factory`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t07.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t07.dart index a555596d97..0c7190ae2f 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t07.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t07.dart @@ -17,7 +17,7 @@ /// followed by the name `factory`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A02_t08.dart b/LanguageFeatures/Primary-constructors/grammar_A02_t08.dart index d26c6b3af7..ea9c76843d 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A02_t08.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A02_t08.dart @@ -17,7 +17,7 @@ /// followed by the name `factory`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { external C1 factory(); diff --git a/LanguageFeatures/Primary-constructors/grammar_A03_t01.dart b/LanguageFeatures/Primary-constructors/grammar_A03_t01.dart index 36e2a22fad..443810e67e 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A03_t01.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A03_t01.dart @@ -14,7 +14,7 @@ /// ``. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { this; diff --git a/LanguageFeatures/Primary-constructors/grammar_A04_t01.dart b/LanguageFeatures/Primary-constructors/grammar_A04_t01.dart index 42792880ca..4f4dedbe8e 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A04_t01.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A04_t01.dart @@ -11,7 +11,7 @@ /// default value. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class A(var int v); diff --git a/LanguageFeatures/Primary-constructors/grammar_A04_t02.dart b/LanguageFeatures/Primary-constructors/grammar_A04_t02.dart index 9616293b59..ec05e049e2 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A04_t02.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A04_t02.dart @@ -11,7 +11,7 @@ /// default value. Test an extension type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1({required final String s = ""}) {} diff --git a/LanguageFeatures/Primary-constructors/grammar_A04_t03.dart b/LanguageFeatures/Primary-constructors/grammar_A04_t03.dart index d566572b0b..b30aa62d53 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A04_t03.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A04_t03.dart @@ -11,7 +11,7 @@ /// default value. Test an enum. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1({required final String s = ""}) { // ^ diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t01.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t01.dart index 644849addc..ee3296debd 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t01.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t01.dart @@ -17,7 +17,7 @@ /// `C`. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t02.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t02.dart index 552e3416d7..4b43d881bb 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t02.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t02.dart @@ -17,7 +17,7 @@ /// `C`. Test a class and external constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t03.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t03.dart index 3b216bc693..564b78d3b0 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t03.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t03.dart @@ -17,7 +17,7 @@ /// `C`. Test a mixin class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t04.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t04.dart index 3c3a7ce202..82f022d8b8 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t04.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t04.dart @@ -17,7 +17,7 @@ /// `C`. Test a mixin class and external constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t05.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t05.dart index 34dd677dd4..5f25f90b1c 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t05.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t05.dart @@ -17,7 +17,7 @@ /// `C`. Test an extension type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t06.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t06.dart index 279fdb4dc0..508b100785 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t06.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t06.dart @@ -17,7 +17,7 @@ /// `C`. Test an extension type and external constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t07.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t07.dart index a319384135..cd49d4a887 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t07.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t07.dart @@ -17,7 +17,7 @@ /// `C`. Test an enum. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=augmentations,declaring-constructors +// SharedOptions=--enable-experiment=augmentations,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/grammar_A05_t08.dart b/LanguageFeatures/Primary-constructors/grammar_A05_t08.dart index 38af7a73e9..13803e2bc4 100644 --- a/LanguageFeatures/Primary-constructors/grammar_A05_t08.dart +++ b/LanguageFeatures/Primary-constructors/grammar_A05_t08.dart @@ -17,7 +17,7 @@ /// `C`. Test an enum and external constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t01.dart index 7c53438074..60a9b72900 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t01.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t02.dart index aa1885f978..b97b9707ed 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t02.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t03.dart index 06422c43d7..215e625f8a 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t03.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t04.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t04.dart index 8e6b7b5033..2d1196ea79 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t04.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t04.dart @@ -11,7 +11,7 @@ /// used as a constructor name in the factory constructor redirection. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t05.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t05.dart index f5a7084c14..45c3606030 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t05.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t05.dart @@ -11,7 +11,7 @@ /// used as a constructor name in the initializer list. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t06.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t06.dart index 5a0beb593e..35281bef1e 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t06.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t06.dart @@ -11,7 +11,7 @@ /// declarations of ordinary constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t07.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t07.dart index 0949b54cba..cfc4c20234 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t07.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t07.dart @@ -11,7 +11,7 @@ /// used to declare a constant non-redirecting constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C { int v; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t08.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t08.dart index a72734efd3..14acb04efd 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t08.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t08.dart @@ -11,7 +11,7 @@ /// constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { final int v; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t09.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t09.dart index 73ae1d5a22..774ec9dc84 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t09.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t09.dart @@ -11,7 +11,7 @@ /// as a constructor name in the factory constructor redirection. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { C1.create(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t10.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t10.dart index 725d5bdd6f..61e084a439 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t10.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t10.dart @@ -11,7 +11,7 @@ /// class name in declarations of named constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1 { new.someName(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A01_t11.dart b/LanguageFeatures/Primary-constructors/static_processing_A01_t11.dart index afbfc25c9f..c1e33b3766 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A01_t11.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A01_t11.dart @@ -11,7 +11,7 @@ /// class name in declarations of named constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C { const C(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t01.dart index a7745361b7..aa7abe8a69 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t01.dart @@ -13,7 +13,7 @@ /// body. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var int v) { C1(this.v); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t02.dart index 70c76425ea..e60efbb48c 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t02.dart @@ -13,7 +13,7 @@ /// the body. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin class C1() { C1(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t03.dart index e29b09131a..3c1c9a331f 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t03.dart @@ -13,7 +13,7 @@ /// in the body. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1(int v) { ET1(this.v); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t04.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t04.dart index e62b129a67..f82cfd4f85 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t04.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t04.dart @@ -13,7 +13,7 @@ /// body. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1(final int v) { e0(1); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t05.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t05.dart index e5ae16e397..a0135512be 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t05.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t05.dart @@ -13,7 +13,7 @@ /// basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1.someName(var int v) { static int someName = 0; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t06.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t06.dart index 3e58c6e7a3..de534d9d73 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t06.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t06.dart @@ -13,7 +13,7 @@ /// member whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin class C1.someName() { static int someName = 0; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t07.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t07.dart index a8ba67ca4d..3b11f64743 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t07.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t07.dart @@ -13,7 +13,7 @@ /// member whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type ET1.someName(int _) { static int someName = 0; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t08.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t08.dart index 459bac3171..9d4d52f214 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t08.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t08.dart @@ -13,7 +13,7 @@ /// basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum E1.someName(int _) { e0.someName(1); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t09.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t09.dart index 2adbe12575..94f06e621f 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t09.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t09.dart @@ -13,7 +13,7 @@ /// whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t10.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t10.dart index 456f8e385e..9df7b8a76d 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t10.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t10.dart @@ -13,7 +13,7 @@ /// whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t11.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t11.dart index 09c30d5c8e..f4fe6ad589 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t11.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t11.dart @@ -13,7 +13,7 @@ /// member whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t12.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t12.dart index 9b00de8a59..833bf722e2 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t12.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t12.dart @@ -13,7 +13,7 @@ /// whose basename is `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t13.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t13.dart index 061a325292..03a54eaf9f 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t13.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t13.dart @@ -13,7 +13,7 @@ /// the body. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var int v) { C1.invalid(this.v); // Needed as redirection target for the constructor below diff --git a/LanguageFeatures/Primary-constructors/static_processing_A02_t14.dart b/LanguageFeatures/Primary-constructors/static_processing_A02_t14.dart index f31cb05b09..030a36aa51 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A02_t14.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A02_t14.dart @@ -13,7 +13,7 @@ /// the body. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum const E1(final int v) { e0(1); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A03_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A03_t01.dart index fddacfc6de..94bbd5b798 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A03_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A03_t01.dart @@ -11,7 +11,7 @@ /// primary constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin M1() {} // ^^ diff --git a/LanguageFeatures/Primary-constructors/static_processing_A03_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A03_t02.dart index 8e51a45282..f8d37db274 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A03_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A03_t02.dart @@ -11,7 +11,7 @@ /// with a non-trivial primary constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin class M1() {} // Ok, this declares a "trivial" constructor diff --git a/LanguageFeatures/Primary-constructors/static_processing_A03_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A03_t03.dart index 0ecfc5229c..c0edfdf255 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A03_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A03_t03.dart @@ -11,7 +11,7 @@ /// class with a primary constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin M {} diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t01.dart index c9fe03eb6a..123ade5d4c 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t01.dart @@ -17,7 +17,7 @@ /// contains a non-redirecting generative constructor. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class C1(var int v) { C1.someName(this.v); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t02.dart index 6c0f0f29ce..20a446beec 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t02.dart @@ -17,7 +17,7 @@ /// contains a non-redirecting generative constructor. Test a mixin class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin class C1() { C1.someName(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t03.dart index 659d48a028..bd55889a97 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t03.dart @@ -17,7 +17,7 @@ /// contains a non-redirecting generative constructor. Test an enum. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors enum const E1(final int v) { e0(1); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t04.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t04.dart index 0cd2d2474a..68c145631f 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t04.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t04.dart @@ -17,7 +17,7 @@ /// the body of `D` contains a non-redirecting generative constructor. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t05.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t05.dart index b2807b5a88..19f113568f 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t05.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t05.dart @@ -17,7 +17,7 @@ /// redirecting generative constructor. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t07.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t07.dart index 86097986b8..3f36de685a 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t07.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t07.dart @@ -17,7 +17,7 @@ /// redirecting generative constructor. Test an enum. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t08.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t08.dart index ce7306fa14..eced8dad6d 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t08.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t08.dart @@ -17,7 +17,7 @@ /// factory constructor. Test a class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t09.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t09.dart index ff03cec491..cc8ff2de54 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t09.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t09.dart @@ -17,7 +17,7 @@ /// factory constructor. Test a mixin class. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors mixin class C1() { factory C1.someName() => C1(); diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t10.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t10.dart index 7b565895c6..995fb9fdec 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t10.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t10.dart @@ -17,7 +17,7 @@ /// factory constructor. Test an extension type. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A04_t11.dart b/LanguageFeatures/Primary-constructors/static_processing_A04_t11.dart index b969e04979..d9656bd341 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A04_t11.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A04_t11.dart @@ -17,7 +17,7 @@ /// factory constructor. Test an enum. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A05_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A05_t01.dart index 4099591a8c..ca17aab22d 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A05_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A05_t01.dart @@ -18,7 +18,7 @@ /// which is `final`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type const ET1(var int v) {} // ^^^ diff --git a/LanguageFeatures/Primary-constructors/static_processing_A05_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A05_t02.dart index a9a606a90a..3d8a5585b4 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A05_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A05_t02.dart @@ -17,7 +17,7 @@ /// a primary constructor that has exactly one parameter. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A05_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A05_t03.dart index c1f24a65f1..0a69d5584e 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A05_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A05_t03.dart @@ -18,7 +18,7 @@ /// which is `final`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors extension type const ET1(); // ^ diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t01.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t01.dart index aa98cb9046..75440db95a 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t01.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t01.dart @@ -28,7 +28,7 @@ /// constructor. Test classes. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t02.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t02.dart index 2b7042b2d6..a407b97e74 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t02.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t02.dart @@ -28,7 +28,7 @@ /// constructor. Test extension types. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t03.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t03.dart index 665c77ef23..fe922c6f7a 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t03.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t03.dart @@ -28,7 +28,7 @@ /// constructor. Test enums. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t04.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t04.dart index 5560ed6332..a04ece01a1 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t04.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t04.dart @@ -24,7 +24,7 @@ /// scope for the initializing expression of late instance variable declaration. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t05.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t05.dart index 2282857a8d..1bbc20354e 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t05.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t05.dart @@ -24,7 +24,7 @@ /// scope for the initializing expression of a static variable declaration. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t06.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t06.dart index 2081b1cdc4..04c5edf368 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t06.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t06.dart @@ -24,7 +24,7 @@ /// scope for the initializing expression of a late static variable declaration. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Primary-constructors/static_processing_A06_t07.dart b/LanguageFeatures/Primary-constructors/static_processing_A06_t07.dart index 854aec97ff..6f6836968a 100644 --- a/LanguageFeatures/Primary-constructors/static_processing_A06_t07.dart +++ b/LanguageFeatures/Primary-constructors/static_processing_A06_t07.dart @@ -24,7 +24,7 @@ /// scope for a body of an instance method/getter/setter. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A01_t03.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A01_t03.dart index 6074a54bc2..373cc0c63e 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A01_t03.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A01_t03.dart @@ -11,7 +11,7 @@ /// corresponding public name. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1({var String __p}) { // ^^^ diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A01_t05.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A01_t05.dart index 83e70f3bfd..196d33c6cb 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A01_t05.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A01_t05.dart @@ -11,7 +11,7 @@ /// corresponding public name. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1({var String __}) { // ^^ diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A02_t02.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A02_t02.dart index fa241f958a..0107687010 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A02_t02.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A02_t02.dart @@ -14,7 +14,7 @@ /// `C` has declared name `p` or `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1(int? _p, {var String _p = ""}) { // ^^ diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A02_t04.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A02_t04.dart index afa7570abf..41df0bec35 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A02_t04.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A02_t04.dart @@ -14,7 +14,7 @@ /// `C` has declared name `p` or `n`. Test declaring parameters. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1(int p, {var String _p = ""}) { // ^^ diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A03_t02.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A03_t02.dart index b9872e8762..4c936191c3 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A03_t02.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A03_t02.dart @@ -16,7 +16,7 @@ /// signature is the corresponding public name `n`. Test declaring constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors import '../../Utils/expect.dart'; import '../../Utils/static_type_helper.dart'; diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A03_t04.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A03_t04.dart index 5005593364..4fb0a5a1ae 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A03_t04.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A03_t04.dart @@ -17,7 +17,7 @@ /// constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1({var String? _p}); diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A04_t02.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A04_t02.dart index da0412d782..be75948545 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A04_t02.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A04_t02.dart @@ -15,7 +15,7 @@ /// constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A05_t02.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A05_t02.dart index 71f8131b26..ec62361128 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A05_t02.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A05_t02.dart @@ -15,7 +15,7 @@ /// constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors import '../../Utils/expect.dart'; diff --git a/LanguageFeatures/Private-named-parameters/static_semantics_A05_t04.dart b/LanguageFeatures/Private-named-parameters/static_semantics_A05_t04.dart index de4300c9ba..f3d5b6f664 100644 --- a/LanguageFeatures/Private-named-parameters/static_semantics_A05_t04.dart +++ b/LanguageFeatures/Private-named-parameters/static_semantics_A05_t04.dart @@ -16,7 +16,7 @@ /// Test declaring constructors. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=private-named-parameters,declaring-constructors +// SharedOptions=--enable-experiment=private-named-parameters,primary-constructors class C1({var String _p = "_p"}); diff --git a/LanguageFeatures/Super-parameters/semantics_A03_t06.dart b/LanguageFeatures/Super-parameters/semantics_A03_t06.dart index 7cdff20c1d..57a82a1fb9 100644 --- a/LanguageFeatures/Super-parameters/semantics_A03_t06.dart +++ b/LanguageFeatures/Super-parameters/semantics_A03_t06.dart @@ -11,7 +11,7 @@ /// invocation at the end of its initializer list has a positional argument. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class S { int s; diff --git a/LanguageFeatures/Super-parameters/semantics_A03_t07.dart b/LanguageFeatures/Super-parameters/semantics_A03_t07.dart index 4b165f3e91..d458dc82fe 100644 --- a/LanguageFeatures/Super-parameters/semantics_A03_t07.dart +++ b/LanguageFeatures/Super-parameters/semantics_A03_t07.dart @@ -12,7 +12,7 @@ /// argument. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class S { int s1; diff --git a/LanguageFeatures/Super-parameters/semantics_A05_t03.dart b/LanguageFeatures/Super-parameters/semantics_A05_t03.dart index 34e3d9b500..8d0ee0a7fb 100644 --- a/LanguageFeatures/Super-parameters/semantics_A05_t03.dart +++ b/LanguageFeatures/Super-parameters/semantics_A05_t03.dart @@ -11,7 +11,7 @@ /// super-constructor invocation with a named argument with name `n`. /// @author sgrekhov22@gmail.com -// SharedOptions=--enable-experiment=declaring-constructors +// SharedOptions=--enable-experiment=primary-constructors class S { int? n;