Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// ^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// ^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// ^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
// ^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
// ^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// ^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// classes.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

class C1(covariant String x) {}
// ^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/// enums.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

enum E1(covariant String x) {
// ^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/// modifier `const`.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// positional parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// parameters.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=declaring-constructors
// SharedOptions=--enable-experiment=primary-constructors

import '../../Utils/expect.dart';

Expand Down
Loading
Loading