Skip to content

Commit

Permalink
Fixes dart-lang#2558. Remove inline-class experimental flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed Mar 7, 2024
1 parent 6f34e53 commit b18dfd0
Show file tree
Hide file tree
Showing 691 changed files with 8 additions and 1,375 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
/// class accessible in the current scope
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class F {
factory F(x) = null;
// ^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
/// referenced name does not denote a constructor.
/// @author ilya
// SharedOptions=--enable-experiment=inline-class

class F {
factory F.foo() = C.foo;
// ^^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
/// types
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class F {
const factory F(F _) = FET1;
// ^^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
/// types
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

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

class F {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 53934
// SharedOptions=--enable-experiment=inline-class

enum Bool {
_true._(true),
_false._(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
/// factory's function type. Checks extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class Bool {
final bool _value;
Bool(this._value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/// type which specifies a superinterface of `C`. Test an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type A<T>(int id) {}

extension type C<T>(int id) implements A<void Function(T)> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
/// type alias
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type A<T>(int id) {}

typedef B<T> = void Function(T);
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/as_type_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "../../../Utils/expect.dart";

class C {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/as_type_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54636
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/as_type_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/as_type_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
/// constant expression if `e` is not a constant expression
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class C {
C();
}
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_not_type_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "../../../Utils/expect.dart";

class C {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_not_type_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54636
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_not_type_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_not_type_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
/// constant expression if `e` is not a constant expression
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class C {
C();
}
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_type_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "../../../Utils/expect.dart";

class C {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_type_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54636
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_type_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54620
// SharedOptions=--enable-experiment=inline-class

import "dart:async";
import "../../../Utils/expect.dart";

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/is_type_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
/// constant expression if `e` is not a constant expression
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class C {
C();
}
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A01_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A01_t08.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/// correctly in case of extension types
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

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

extension type const ExtNum(num _) implements num {}
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A01_t09.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/// correctly in case of extension types
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

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

extension type const ExtNum(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// or `double`
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

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

extension type const ExtNum(num _) implements num {}
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t05.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t07.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t08.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t09.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t10.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t11.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t12.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/math_operators_A03_t13.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54545
// SharedOptions=--enable-experiment=inline-class

extension type const ExtNum1(num _) implements num {}

extension type const ExtNum2(num value) implements num {
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Equality/static_type_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
/// @author sgrekhov22@gmail.com
/// @issue 54080
// SharedOptions=--enable-experiment=inline-class

class C {
BoolET operator ==(Object? other) {
return BoolET(other == this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `abstract` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type abstract(int _) {}
// ^^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `as` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type as(int _) {}
// ^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/// type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type covariant(int _) {}
// ^^^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `deferred` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type deferred(int _) {}
// ^^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `dynamic` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type dynamic(int _) {}
// ^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `export` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type export(int _) {}
// ^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `external` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type external(int _) {}
// ^^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/// type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type extension(int _) {}
// ^^^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
/// `factory` is used as the name, type parameter or alias of an extension type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type factory(int _) {}
// ^^^^^^^
// [analyzer] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/// type
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type Function(int _) {}
// ^^^^^^^^
// [analyzer] unspecified
Expand Down
Loading

0 comments on commit b18dfd0

Please sign in to comment.