Skip to content

Fixes #3067. Rename the static access shorthand feature experiment flag #3068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2025
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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]
/// @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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

// 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 [email protected]

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

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