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 @@ -17,7 +17,7 @@
/// and `const '.' new(arguments)` are constant expressions.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// in an appropriate declaration are not constant constructors.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// expression in `arguments` is not a constant expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// getter with the name `<identifier>`.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// explicit or implicit non-constant getter declaration.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// name `<identifier>`.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// name `<identifier>`.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// type argument is not a constant expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// an unnamed constructor and the target class is not generic.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// corresponding static function.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// constant type expressions.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/// `<typeArguments>` is still a compile-time error.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C<T> {
const C();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/// are not constant types.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C<X, Y> {
const C();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// not a constant expression if `id` is a getter or static function declaration
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
const C();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// static function declaration.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
const C();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// constant expression
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

import '../../Utils/expect.dart';
import 'shorthand_lib.dart' as p;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// the initializer list of a constant constructor.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

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

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class A {
int id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant list literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// static member shorthand expression in a constant list literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant set literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// static member shorthand expression in a constant set literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant map literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// static member shorthand expression in a constant map literal.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant parenthesized expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// static member shorthand expression in a constant parenthesized expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a right operand of a constant `e1 == e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// `e1 == e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a right operand of a constant `e1 != e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// `e1 != e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C answer = const C(42);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant `e1 ? e2 : e3` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// member shorthand expression is used in a constant `e1 ? e2 : e3` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C one = const C(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// a constant `e1 ?? e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// member shorthand expression is used in a constant `e1 ?? e2` expression.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C {
static C one = const C(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// context from `e1`. Test a class.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// context from `e1`. Test a mixin.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// context from `e1`. Test an enum.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// context from `e1`. Test an extension type.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// value type of the pattern. Test a class.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// value type of the pattern. Test a mixin.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// value type of the pattern. Test an enum.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// value type of the pattern. Test an extension type.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

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

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

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

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

// SharedOptions=--enable-experiment=enum-shorthands
// SharedOptions=--enable-experiment=dot-shorthands

class C<T> {
final T value;
Expand Down
Loading
Loading