[cfe] Remove weak suite Change-Id: Ic2598e408c0ca0d0f8cd1e07a0354f9e7fefd321 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/411242 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
diff --git a/pkg/front_end/test/run_all_coverage.dart b/pkg/front_end/test/run_all_coverage.dart index 8c07ad4..cee861fc 100644 --- a/pkg/front_end/test/run_all_coverage.dart +++ b/pkg/front_end/test/run_all_coverage.dart
@@ -44,7 +44,6 @@ addSuiteSkipVm("pkg/front_end/test/strong_suite.dart"); addSuiteSkipVm("pkg/front_end/test/modular_suite.dart"); - addSuiteSkipVm("pkg/front_end/test/weak_suite.dart"); addWithCoverageArgument("pkg/front_end/test/messages_suite.dart"); addWithCoverageArgument("pkg/front_end/test/outline_suite.dart");
diff --git a/pkg/front_end/test/unit_test_suites.dart b/pkg/front_end/test/unit_test_suites.dart index 8c91670..ae7ae03 100644 --- a/pkg/front_end/test/unit_test_suites.dart +++ b/pkg/front_end/test/unit_test_suites.dart
@@ -24,7 +24,6 @@ import 'outline_suite.dart' as outline show createContext; import 'strong_suite.dart' as strong show createContext; import 'textual_outline_suite.dart' as textual_outline show createContext; -import 'weak_suite.dart' as weak show createContext; import 'incremental_bulk_compiler_smoke_suite.dart' as incremental_bulk_compiler show createContext; import 'incremental_suite.dart' as incremental show createContext; @@ -455,13 +454,6 @@ shardCount: 4, ), const Suite( - "weak", - weak.createContext, - "../testing.json", - path: "weak_suite.dart", - shardCount: 10, - ), - const Suite( "textual_outline", textual_outline.createContext, "../testing.json",
diff --git a/pkg/front_end/test/weak_suite.dart b/pkg/front_end/test/weak_suite.dart deleted file mode 100644 index 101f14a..0000000 --- a/pkg/front_end/test/weak_suite.dart +++ /dev/null
@@ -1,24 +0,0 @@ -// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -import 'utils/suite_utils.dart' show internalMain; -import 'testing/environment_keys.dart'; -import 'testing/suite.dart'; - -Future<FastaContext> createContext( - Chain suite, Map<String, String> environment) { - environment[EnvironmentKeys.compilationMode] = CompileMode.full.name; - environment[EnvironmentKeys.semiFuzz] ??= "true"; - environment[EnvironmentKeys.skipVm] ??= "true"; - return FastaContext.create(suite, environment); -} - -Future<void> main([List<String> arguments = const []]) async { - await internalMain( - createContext, - arguments: arguments, - displayName: "weak suite", - configurationPath: "../testing.json", - ); -}
diff --git a/pkg/front_end/test/weekly_tester.dart b/pkg/front_end/test/weekly_tester.dart index a66f9f3..2fa33a0 100644 --- a/pkg/front_end/test/weekly_tester.dart +++ b/pkg/front_end/test/weekly_tester.dart
@@ -44,22 +44,6 @@ } { - // Weak suite with fuzzing. - Uri weakSuite = Platform.script.resolve("weak_suite.dart"); - if (!new File.fromUri(weakSuite).existsSync()) { - noteMissingScript("Couldn't find $weakSuite"); - } else { - startedProcesses.add(await run( - [ - weakSuite.toString(), - "-DsemiFuzz=true", - ], - "weak suite", - )); - } - } - - { // Strong suite with fuzzing. Uri strongSuite = Platform.script.resolve("strong_suite.dart"); if (!new File.fromUri(strongSuite).existsSync()) {
diff --git a/pkg/front_end/testcases/dart2js/abstract_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/abstract_tear_off.dart.weak.transformed.expect deleted file mode 100644 index ef8e0d2..0000000 --- a/pkg/front_end/testcases/dart2js/abstract_tear_off.dart.weak.transformed.expect +++ /dev/null
@@ -1,49 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/abstract_tear_off.dart:15:9: Error: Constructors on abstract classes can't be torn off. -// Class.new; // Error -// ^^^ -// -// pkg/front_end/testcases/dart2js/abstract_tear_off.dart:17:5: Error: Constructors on abstract classes can't be torn off. -// F.new; // Error -// ^^^ -// -import self as self; -import "dart:core" as core; - -typedef F<unrelated T extends core::Object? = dynamic> = self::Class; -abstract class Class extends core::Object { - constructor •() → self::Class - : super core::Object::•() - ; - static factory redirect() → self::Class /* redirection-target: self::ClassImpl::• */ - return new self::ClassImpl::•(); - static method _#redirect#tearOff() → self::Class - return new self::ClassImpl::•(); -} -class ClassImpl extends core::Object implements self::Class { - synthetic constructor •() → self::ClassImpl - : super core::Object::•() - ; - static method _#new#tearOff() → self::ClassImpl - return new self::ClassImpl::•(); -} -static method test() → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/abstract_tear_off.dart:15:9: Error: Constructors on abstract classes can't be torn off. - Class.new; // Error - ^^^"; - #C1; - invalid-expression "pkg/front_end/testcases/dart2js/abstract_tear_off.dart:17:5: Error: Constructors on abstract classes can't be torn off. - F.new; // Error - ^^^"; - #C2; -} -static method _#F#redirect#tearOff<unrelated T extends core::Object? = dynamic>() → self::Class - return self::Class::_#redirect#tearOff(); - -constants { - #C1 = static-tearoff self::Class::_#redirect#tearOff - #C2 = static-tearoff self::_#F#redirect#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/async_lowering/collapse_return_await.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/async_lowering/collapse_return_await.dart.weak.transformed.expect deleted file mode 100644 index 7052339..0000000 --- a/pkg/front_end/testcases/dart2js/async_lowering/collapse_return_await.dart.weak.transformed.expect +++ /dev/null
@@ -1,29 +0,0 @@ -library; -import self as self; -import "dart:async" as asy; -import "dart:core" as core; - -static method bar() → asy::Future<core::int> { - return asy::Future::value<core::int>(123); -} -static method foo1() → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ - return asy::Future::sync<core::int>(() → FutureOr<core::int> { - return asy::Future::value<core::int>(self::bar()); - }); -static method foo2(core::bool x) → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ - return asy::Future::sync<core::int>(() → FutureOr<core::int> { - if(x) - return asy::Future::value<core::int>(asy::Future::value<core::int>(345)); - return asy::Future::value<core::int>(self::bar()); - }); -static method foo3(core::bool x) → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ - return asy::Future::sync<core::int>(() → FutureOr<core::int> { - if(x) - return asy::Future::value<core::int>(234); - return asy::Future::value<core::int>(asy::Future::value<core::int>(123)); - }); -static method main() → void { - self::foo1(); - self::foo2(true); - self::foo3(true); -}
diff --git a/pkg/front_end/testcases/dart2js/async_lowering/disabled/basic_return.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/async_lowering/disabled/basic_return.dart.weak.transformed.expect deleted file mode 100644 index f9ec0f2..0000000 --- a/pkg/front_end/testcases/dart2js/async_lowering/disabled/basic_return.dart.weak.transformed.expect +++ /dev/null
@@ -1,12 +0,0 @@ -library; -import self as self; -import "dart:async" as asy; -import "dart:core" as core; - -static method foo() → asy::Future<core::int> async /* emittedValueType= core::int */ { - final core::int c = 3; - return c; -} -static method main() → void { - self::foo(); -}
diff --git a/pkg/front_end/testcases/dart2js/async_lowering/no_await.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/async_lowering/no_await.dart.weak.transformed.expect deleted file mode 100644 index 1d6a063..0000000 --- a/pkg/front_end/testcases/dart2js/async_lowering/no_await.dart.weak.transformed.expect +++ /dev/null
@@ -1,39 +0,0 @@ -library; -import self as self; -import "dart:async" as asy; -import "dart:core" as core; - -static method foo1() → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ - return asy::Future::sync<core::int>(() → FutureOr<core::int> { - final core::int c = 3; - return asy::Future::value<core::int>(c); - }); -static method foo2() → asy::Future<void> /* emittedValueType= void */ /* originally async */ - return asy::Future::sync<void>(() → FutureOr<void>? { - final core::int c = 3; - }); -static method foo3() → dynamic /* emittedValueType= dynamic */ /* originally async */ - return asy::Future::sync<dynamic>(() → FutureOr<dynamic>? { - return asy::Future::value<dynamic>(234); - }); -static method bar(() → asy::Future<core::int> func) → void { - func(){() → asy::Future<core::int>}; -} -static method foo4() → asy::Future<core::bool> async /* emittedValueType= core::bool */ { - await asy::Future::value<core::int>(2); - self::bar(() → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ => asy::Future::sync<core::int>(() → FutureOr<core::int> => asy::Future::value<core::int>(3))); - return true; -} -static method foo5(core::bool x) → asy::Future<core::int> /* emittedValueType= core::int */ /* originally async */ - return asy::Future::sync<core::int>(() → FutureOr<core::int> { - if(x) - return asy::Future::value<core::int>(123); - return asy::Future::value<core::int>(234); - }); -static method main() → void { - self::foo1(); - self::foo2(); - self::foo3(); - self::foo4(); - self::foo5(true); -}
diff --git a/pkg/front_end/testcases/dart2js/async_lowering/no_transform.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/async_lowering/no_transform.dart.weak.transformed.expect deleted file mode 100644 index 3ed3193..0000000 --- a/pkg/front_end/testcases/dart2js/async_lowering/no_transform.dart.weak.transformed.expect +++ /dev/null
@@ -1,40 +0,0 @@ -library; -import self as self; -import "dart:async" as asy; -import "dart:core" as core; - -static method foo1() → asy::Future<void> async /* emittedValueType= void */ { - await asy::_wrapAwaitedExpression<core::int>(6); -} -static method foo2() → asy::Future<core::int> async /* emittedValueType= core::int */ { - return (await asy::_wrapAwaitedExpression<core::int>(6)).{core::num::+}(3){(core::num) → core::int}; -} -static method foo3() → asy::Future<void> async /* emittedValueType= void */ { - #L1: - await for (final dynamic x in new asy::_EmptyStream::•<dynamic>()) { - break #L1; - } -} -static method foo4() → asy::Future<core::int> async /* emittedValueType= core::int */ { - try { - return 3; - } - finally { - return 2; - } -} -static method foo5() → asy::Future<core::int> async /* emittedValueType= core::int */ { - try { - return 3; - } - on core::Object catch(final core::Object e) { - return 2; - } -} -static method main() → void { - self::foo1(); - self::foo2(); - self::foo3(); - self::foo4(); - self::foo5(); -}
diff --git a/pkg/front_end/testcases/dart2js/conditional_import.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/conditional_import.dart.weak.transformed.expect deleted file mode 100644 index 74b1803..0000000 --- a/pkg/front_end/testcases/dart2js/conditional_import.dart.weak.transformed.expect +++ /dev/null
@@ -1,112 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/conditional_import.dart:20:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. -// - 'HttpRequest' is from 'dart:html'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. -// request.certificate; // error (from dart:io) -// ^^^^^^^^^^^ -// -// pkg/front_end/testcases/dart2js/conditional_import.dart:27:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. -// - 'HttpRequest' is from 'dart:html'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. -// request.certificate; // error (from dart:io) -// ^^^^^^^^^^^ -// -// pkg/front_end/testcases/dart2js/conditional_import.dart:34:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. -// - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. -// request.certificate; // error -// ^^^^^^^^^^^ -// -// pkg/front_end/testcases/dart2js/conditional_import.dart:35:11: Error: The getter 'response' isn't defined for the class 'HttpRequest'. -// - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'response'. -// request.response; // error -// ^^^^^^^^ -// -// pkg/front_end/testcases/dart2js/conditional_import.dart:36:11: Error: The getter 'readyState' isn't defined for the class 'HttpRequest'. -// - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'readyState'. -// request.readyState; // error -// ^^^^^^^^^^ -// -import self as self; -import "dart:core" as core; -import "dart:html" as html; -import "dart:_interceptors" as _in; - -import "dart:html" as a; -import "dart:html" as b; -import "org-dartlang-testcase:///conditional_import.dart" as c; - -class HttpRequest extends core::Object { - synthetic constructor •() → self::HttpRequest - : super core::Object::•() - ; - static method _#new#tearOff() → self::HttpRequest - return new self::HttpRequest::•(); -} -static method testA(html::HttpRequest request) → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/conditional_import.dart:20:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. - - 'HttpRequest' is from 'dart:html'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. - request.certificate; // error (from dart:io) - ^^^^^^^^^^^" in request{<unresolved>}.certificate; - request.{html::HttpRequest::response}{dynamic}; - request.{html::HttpRequest::readyState}{core::int}; - request.{_in::Interceptor::hashCode}{core::int}; -} -static method testB(html::HttpRequest request) → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/conditional_import.dart:27:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. - - 'HttpRequest' is from 'dart:html'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. - request.certificate; // error (from dart:io) - ^^^^^^^^^^^" in request{<unresolved>}.certificate; - request.{html::HttpRequest::response}{dynamic}; - request.{html::HttpRequest::readyState}{core::int}; - request.{_in::Interceptor::hashCode}{core::int}; -} -static method testC(self::HttpRequest request) → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/conditional_import.dart:34:11: Error: The getter 'certificate' isn't defined for the class 'HttpRequest'. - - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'certificate'. - request.certificate; // error - ^^^^^^^^^^^" in request{<unresolved>}.certificate; - invalid-expression "pkg/front_end/testcases/dart2js/conditional_import.dart:35:11: Error: The getter 'response' isn't defined for the class 'HttpRequest'. - - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'response'. - request.response; // error - ^^^^^^^^" in request{<unresolved>}.response; - invalid-expression "pkg/front_end/testcases/dart2js/conditional_import.dart:36:11: Error: The getter 'readyState' isn't defined for the class 'HttpRequest'. - - 'HttpRequest' is from 'pkg/front_end/testcases/dart2js/conditional_import.dart'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'readyState'. - request.readyState; // error - ^^^^^^^^^^" in request{<unresolved>}.readyState; - request.{core::Object::hashCode}{core::int}; -} -static method main() → void { - self::expect(false, #C2); - self::expect(true, #C4); - self::expect(false, #C6); -} -static method expect(dynamic expected, dynamic actual) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual}"; -} - -constants { - #C1 = "dart.library.io" - #C2 = eval /* from org-dartlang-testcase:///conditional_import.dart */ const core::bool::fromEnvironment(#C1) - #C3 = "dart.library.html" - #C4 = eval /* from org-dartlang-testcase:///conditional_import.dart */ const core::bool::fromEnvironment(#C3) - #C5 = "dart.library.foo" - #C6 = eval /* from org-dartlang-testcase:///conditional_import.dart */ const core::bool::fromEnvironment(#C5) -} - -Extra constant evaluation status: -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///conditional_import.dart:41:23 -> BoolConstant(false) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///conditional_import.dart:42:22 -> BoolConstant(true) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///conditional_import.dart:43:23 -> BoolConstant(false) -Extra constant evaluation: evaluated: 29, effectively constant: 3
diff --git a/pkg/front_end/testcases/dart2js/constant_null_is.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/constant_null_is.dart.weak.transformed.expect deleted file mode 100644 index 923cbc1..0000000 --- a/pkg/front_end/testcases/dart2js/constant_null_is.dart.weak.transformed.expect +++ /dev/null
@@ -1,128 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -import "dart:async"; - -class Class<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ { - final field core::bool field; - const constructor constructor1(dynamic value) → self::Class<self::Class::T%> - : self::Class::field = value is self::Class::T%, super core::Object::•() - ; - const constructor constructor2(dynamic value) → self::Class<self::Class::T%> - : self::Class::field = value is self::Class::T?, super core::Object::•() - ; - const constructor constructor3(dynamic value) → self::Class<self::Class::T%> - : self::Class::field = value is self::Class<self::Class::T%>, super core::Object::•() - ; - const constructor constructor4(dynamic value) → self::Class<self::Class::T%> - : self::Class::field = value is self::Class<self::Class::T%>?, super core::Object::•() - ; - static method _#constructor1#tearOff<T extends core::Object? = dynamic>(dynamic value) → self::Class<self::Class::_#constructor1#tearOff::T%> - return new self::Class::constructor1<self::Class::_#constructor1#tearOff::T%>(value); - static method _#constructor2#tearOff<T extends core::Object? = dynamic>(dynamic value) → self::Class<self::Class::_#constructor2#tearOff::T%> - return new self::Class::constructor2<self::Class::_#constructor2#tearOff::T%>(value); - static method _#constructor3#tearOff<T extends core::Object? = dynamic>(dynamic value) → self::Class<self::Class::_#constructor3#tearOff::T%> - return new self::Class::constructor3<self::Class::_#constructor3#tearOff::T%>(value); - static method _#constructor4#tearOff<T extends core::Object? = dynamic>(dynamic value) → self::Class<self::Class::_#constructor4#tearOff::T%> - return new self::Class::constructor4<self::Class::_#constructor4#tearOff::T%>(value); -} -static final field core::bool isWeakMode = #C1 is core::List<core::Object>; -static const field core::bool c0 = #C2; -static const field core::bool c1 = #C3; -static const field core::bool c2 = #C2; -static const field core::bool c3 = #C2; -static const field core::bool c4 = #C3; -static const field core::bool c5 = #C2; -static const field core::bool c6 = #C3; -static const field core::bool c7 = #C2; -static const field core::bool c8 = #C2; -static const field core::bool c9 = #C2; -static const field core::bool c10 = #C3; -static const field core::bool c11 = #C2; -static const field core::bool c12 = #C2; -static const field self::Class<core::int> e1 = #C4; -static const field self::Class<core::List<core::int>> e2 = #C5; -static const field self::Class<Null> e3 = #C6; -static const field self::Class<core::int> e4 = #C7; -static const field self::Class<core::int?> e5 = #C8; -static const field self::Class<Null> e6 = #C6; -static const field self::Class<core::int> e7 = #C4; -static const field self::Class<core::int?> e8 = #C9; -static const field self::Class<Null> e9 = #C10; -static const field self::Class<core::int> e10 = #C7; -static const field self::Class<core::int?> e11 = #C8; -static const field self::Class<Null> e12 = #C6; -static method main() → dynamic { - self::expect(null is core::int?, #C2, "null is int?"); - self::expect(null is core::int, #C3, "null is int"); - self::expect(null is Null, #C2, "null is Null"); - self::expect(null is Never?, #C2, "null is Never?"); - self::expect(null is Never, #C3, "null is Never"); - self::expect(null is FutureOr<core::int?>, #C2, "null is FutureOr<int?>"); - self::expect(null is FutureOr<core::int>, #C3, "null is FutureOr<int>"); - self::expect(null is FutureOr<core::int>?, #C2, "null is FutureOr<int>?"); - self::expect(null is FutureOr<Null>, #C2, "null is FutureOr<Null>"); - self::expect(null is FutureOr<Null>?, #C2, "null is FutureOr<Null>?"); - self::expect(null is FutureOr<Never>, #C3, "null is FutureOr<Never>"); - self::expect(null is FutureOr<Never?>, #C2, "null is FutureOr<Never?>"); - self::expect(null is FutureOr<Never>?, #C2, "null is FutureOr<Never>?"); - self::expect(new self::Class::constructor1<core::int>(null).{self::Class::field}{core::bool}, #C4.{self::Class::field}{core::bool}, "Class<int>.constructor1(null).field"); - self::expect(true, new self::Class::constructor1<core::int?>(null).{self::Class::field}{core::bool}, "new Class<int?>.constructor1(null).field"); - self::expect(self::isWeakMode, #C5.{self::Class::field}{core::bool}, "const Class<List<int>>.constructor1(<Null>[null]).field"); - self::expect(new self::Class::constructor1<Null>(null).{self::Class::field}{core::bool}, #C6.{self::Class::field}{core::bool}, "Class<Null>.constructor1(null).field"); - self::expect(new self::Class::constructor2<core::int>(null).{self::Class::field}{core::bool}, #C7.{self::Class::field}{core::bool}, "Class<int>.constructor2(null).field"); - self::expect(true, new self::Class::constructor2<core::int?>(null).{self::Class::field}{core::bool}, "new Class<int?>.constructor2(null).field"); - self::expect(new self::Class::constructor2<core::int?>(null).{self::Class::field}{core::bool}, #C8.{self::Class::field}{core::bool}, "Class<int?>.constructor2(null).field"); - self::expect(new self::Class::constructor2<Null>(null).{self::Class::field}{core::bool}, #C6.{self::Class::field}{core::bool}, "Class<Null>.constructor2(null).field"); - self::expect(new self::Class::constructor3<core::int>(null).{self::Class::field}{core::bool}, #C4.{self::Class::field}{core::bool}, "Class<int>.constructor3(null).field"); - self::expect(new self::Class::constructor3<core::int?>(null).{self::Class::field}{core::bool}, #C9.{self::Class::field}{core::bool}, "Class<int?>.constructor3(null).field"); - self::expect(new self::Class::constructor3<core::int?>(null).{self::Class::field}{core::bool}, #C9.{self::Class::field}{core::bool}, "Class<int?>.constructor3(null).field"); - self::expect(new self::Class::constructor3<Null>(null).{self::Class::field}{core::bool}, #C10.{self::Class::field}{core::bool}, "Class<Null>.constructor3(null).field"); - self::expect(new self::Class::constructor4<core::int>(null).{self::Class::field}{core::bool}, #C7.{self::Class::field}{core::bool}, "Class<int>.constructor4(null).field"); - self::expect(new self::Class::constructor4<core::int?>(null).{self::Class::field}{core::bool}, #C8.{self::Class::field}{core::bool}, "Class<int?>.constructor4(null).field"); - self::expect(new self::Class::constructor4<Null>(null).{self::Class::field}{core::bool}, #C6.{self::Class::field}{core::bool}, "Class<Null>.constructor4(null).field"); -} -static method expect(dynamic expected, dynamic actual, core::String message) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual} for ${message}"; -} - -constants { - #C1 = <Null>[] - #C2 = true - #C3 = false - #C4 = self::Class<core::int*> {field:#C3} - #C5 = self::Class<core::List<core::int*>*> {field:#C2} - #C6 = self::Class<Null> {field:#C2} - #C7 = self::Class<core::int*> {field:#C2} - #C8 = self::Class<core::int?> {field:#C2} - #C9 = self::Class<core::int?> {field:#C3} - #C10 = self::Class<Null> {field:#C3} -} - -Extra constant evaluation status: -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:45:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:46:15 -> BoolConstant(false) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:47:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:48:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:49:15 -> BoolConstant(false) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:50:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:51:15 -> BoolConstant(false) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:52:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:53:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:54:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:55:15 -> BoolConstant(false) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:56:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:57:15 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///constant_null_is.dart:7:40 -> BoolConstant(true) -Extra constant evaluation: evaluated: 109, effectively constant: 14 - - -Constructor coverage from constants: -org-dartlang-testcase:///constant_null_is.dart: -- Class.constructor1 (from org-dartlang-testcase:///constant_null_is.dart:38:9) -- Object. (from org-dartlang-sdk:///lib/core/object.dart) -- Class.constructor2 (from org-dartlang-testcase:///constant_null_is.dart:39:9) -- Class.constructor3 (from org-dartlang-testcase:///constant_null_is.dart:40:9) -- Class.constructor4 (from org-dartlang-testcase:///constant_null_is.dart:41:9)
diff --git a/pkg/front_end/testcases/dart2js/constants.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/constants.dart.weak.transformed.expect deleted file mode 100644 index b7adc44..0000000 --- a/pkg/front_end/testcases/dart2js/constants.dart.weak.transformed.expect +++ /dev/null
@@ -1,40 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class Class<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ { - final field self::Class::T% field; - const constructor •(self::Class::T% field) → self::Class<self::Class::T%> - : self::Class::field = field, super core::Object::•() - ; - static method _#new#tearOff<T extends core::Object? = dynamic>(self::Class::_#new#tearOff::T% field) → self::Class<self::Class::_#new#tearOff::T%> - return new self::Class::•<self::Class::_#new#tearOff::T%>(field); -} -static const field (core::int) → core::int partialInstantiation = #C2; -static const field self::Class<core::int> instance = #C4; -static const field core::List<core::int> listLiteral = #C5; -static const field core::Set<core::int> setLiteral = #C6; -static const field core::Map<core::int, core::String> mapLiteral = #C8; -static const field core::List<core::int> listConcatenation = #C5; -static const field core::Set<core::int> setConcatenation = #C6; -static const field core::Map<core::int, core::String> mapConcatenation = #C8; -static method id<T extends core::Object? = dynamic>(self::id::T% t) → self::id::T% - return t; -static method main() → dynamic {} - -constants { - #C1 = static-tearoff self::id - #C2 = instantiation #C1 <core::int*> - #C3 = 0.0 - #C4 = self::Class<core::int*> {field:#C3} - #C5 = <core::int*>[#C3] - #C6 = <core::int*>{#C3} - #C7 = "foo" - #C8 = <core::int*, core::String*>{#C3:#C7} -} - - -Constructor coverage from constants: -org-dartlang-testcase:///constants.dart: -- Class. (from org-dartlang-testcase:///constants.dart:8:9) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/constructor_tearoff.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/constructor_tearoff.dart.weak.transformed.expect deleted file mode 100644 index 77dbc96..0000000 --- a/pkg/front_end/testcases/dart2js/constructor_tearoff.dart.weak.transformed.expect +++ /dev/null
@@ -1,44 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -typedef Alias<T extends core::num> = self::Class<T>; -class Class<T extends core::Object? = dynamic> extends core::Object { - constructor •() → self::Class<self::Class::T%> - : super core::Object::•() - ; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::Class<self::Class::_#new#tearOff::T%> - return new self::Class::•<self::Class::_#new#tearOff::T%>(); - static factory fact<T extends core::Object? = dynamic>() → self::Class<self::Class::fact::T%> - return new self::Class::•<self::Class::fact::T%>(); - static method _#fact#tearOff<T extends core::Object? = dynamic>() → self::Class<self::Class::_#fact#tearOff::T%> - return self::Class::fact<self::Class::_#fact#tearOff::T%>(); - static factory redirect<T extends core::Object? = dynamic>() → self::Class<self::Class::redirect::T%> /* redirection-target: self::Class::•<self::Class::redirect::T%>*/ - return new self::Class::•<self::Class::redirect::T%>(); - static method _#redirect#tearOff<T extends core::Object? = dynamic>() → self::Class<self::Class::_#redirect#tearOff::T%> - return new self::Class::•<self::Class::_#redirect#tearOff::T%>(); -} -static const field <T extends core::Object? = dynamic>() → self::Class<T%> a = #C1; -static const field <T extends core::Object? = dynamic>() → self::Class<T%> b = #C2; -static const field <T extends core::Object? = dynamic>() → self::Class<T%> c = #C3; -static const field <T extends core::num>() → self::Class<T> d = #C4; -static const field <T extends core::num>() → self::Class<T> e = #C5; -static const field <T extends core::num>() → self::Class<T> f = #C6; -static method main() → dynamic { - core::print("${#C1}${#C2}${#C3}${#C4}${#C5}${#C6}"); -} -static method _#Alias#new#tearOff<T extends core::num>() → self::Class<self::_#Alias#new#tearOff::T> - return new self::Class::•<self::_#Alias#new#tearOff::T>(); -static method _#Alias#fact#tearOff<T extends core::num>() → self::Class<self::_#Alias#fact#tearOff::T> - return self::Class::fact<self::_#Alias#fact#tearOff::T>(); -static method _#Alias#redirect#tearOff<T extends core::num>() → self::Class<self::_#Alias#redirect#tearOff::T> - return self::Class::_#redirect#tearOff<self::_#Alias#redirect#tearOff::T>(); - -constants { - #C1 = static-tearoff self::Class::_#new#tearOff - #C2 = static-tearoff self::Class::_#fact#tearOff - #C3 = static-tearoff self::Class::_#redirect#tearOff - #C4 = static-tearoff self::_#Alias#new#tearOff - #C5 = static-tearoff self::_#Alias#fact#tearOff - #C6 = static-tearoff self::_#Alias#redirect#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/enum_from_environment.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/enum_from_environment.dart.weak.transformed.expect deleted file mode 100644 index aa2b63d..0000000 --- a/pkg/front_end/testcases/dart2js/enum_from_environment.dart.weak.transformed.expect +++ /dev/null
@@ -1,80 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_internal" as _in; - -class A extends core::_Enum /*isEnum*/ { - enum-element static const field self::A a = #C5; - enum-element static const field self::A b = #C10; - final field self::B value; - static const field core::List<self::A> values = #C13; - const constructor •(core::int #index, core::String #name, self::B value) → self::A - : self::A::value = value, super core::_Enum::•(#index, #name) - ; - method _enumToString() → core::String - return "A.${this.{core::_Enum::_name}{core::String}}"; - static method _#new#tearOff(core::int #index, core::String #name, self::B value) → self::A - return new self::A::•(#index, #name, value); -} -class B extends core::Object /*hasConstConstructor*/ { - final field core::int value; - static const field self::B a = #C3; - static const field self::B b = #C8; - const constructor •(core::int value) → self::B - : self::B::value = value, super core::Object::•() - ; - static method _#new#tearOff(core::int value) → self::B - return new self::B::•(value); -} -static method method(self::A a) → core::String { - #L1: - switch(a) /* isExplicitlyExhaustive, self::A */ { - #L2: - case #C5: - { - return "a"; - } - #L3: - case #C10: - { - return "b"; - } - #L4: - default: - throw{for-error-handling} new _in::ReachabilityError::•("`null` encountered as case in a switch statement with a non-nullable type."); - } -} - -constants { - #C1 = "a" - #C2 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ const core::int::fromEnvironment(#C1) - #C3 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ self::B{value:#C2} - #C4 = 0.0 - #C5 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ self::A{value:#C3, index:#C4, _name:#C1} - #C6 = "b" - #C7 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ const core::int::fromEnvironment(#C6) - #C8 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ self::B{value:#C7} - #C9 = 1.0 - #C10 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ self::A{value:#C8, index:#C9, _name:#C6} - #C11 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ const <dynamic>[#C5] - #C12 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ const <dynamic>[#C10] - #C13 = eval /* from org-dartlang-testcase:///enum_from_environment.dart */ #C11 + #C12 -} - -Extra constant evaluation status: -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:6:3 -> InstanceConstant(const A{A.value: const B{B.value: 0.0}, _Enum.index: 0.0, _Enum._name: "a"}) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:7:3 -> InstanceConstant(const A{A.value: const B{B.value: 0.0}, _Enum.index: 1.0, _Enum._name: "b"}) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:5:6 -> ListConstant(const <A*>[const A{A.value: const B{B.value: 0.0}, _Enum.index: 0.0, _Enum._name: "a"}, const A{A.value: const B{B.value: 0.0}, _Enum.index: 1.0, _Enum._name: "b"}]) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:20:28 -> InstanceConstant(const B{B.value: 0.0}) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:21:28 -> InstanceConstant(const B{B.value: 0.0}) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:26:12 -> InstanceConstant(const A{A.value: const B{B.value: 0.0}, _Enum.index: 0.0, _Enum._name: "a"}) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///enum_from_environment.dart:28:12 -> InstanceConstant(const A{A.value: const B{B.value: 0.0}, _Enum.index: 1.0, _Enum._name: "b"}) -Extra constant evaluation: evaluated: 23, effectively constant: 7 - - -Constructor coverage from constants: -org-dartlang-testcase:///enum_from_environment.dart: -- B. (from org-dartlang-testcase:///enum_from_environment.dart:18:9) -- Object. (from org-dartlang-sdk:///lib/core/object.dart) -- A. (from org-dartlang-testcase:///enum_from_environment.dart:12:9) -- _Enum. (from org-dartlang-sdk:///lib/core/enum.dart)
diff --git a/pkg/front_end/testcases/dart2js/extension_types/external.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/extension_types/external.dart.weak.transformed.expect deleted file mode 100644 index 7180bfd..0000000 --- a/pkg/front_end/testcases/dart2js/extension_types/external.dart.weak.transformed.expect +++ /dev/null
@@ -1,110 +0,0 @@ -@#C2 -library static_interop; -import self as self; -import "dart:js_interop" as js_; -import "dart:_js_annotations" as _js; -import "dart:core" as core; -import "dart:js_util" as js_2; -import "dart:_js_helper" as _js2; - -import "dart:js_interop"; - -@#C2 -@#C3 -class A extends core::Object { - synthetic constructor •() → self::A - : super core::Object::•() - ; - static method _#new#tearOff() → self::A - return new self::A::•(); -} -@#C2 -extension type B(self::A a) { - abstract extension-type-member representation-field get a() → self::A; - get field = self::B|get#field; - set field = self::B|set#field; - method method = self::B|method; - method tearoff method = self::B|get#method; - method genericMethod = self::B|genericMethod; - method tearoff genericMethod = self::B|get#genericMethod; - get getter = self::B|get#getter; - get property = self::B|get#property; - static get staticField = get self::B|staticField; - static set staticField = set self::B|staticField; - static method staticMethod = self::B|staticMethod; - static method staticGenericMethod = self::B|staticGenericMethod; - static get staticGetter = get self::B|staticGetter; - static get staticProperty = get self::B|staticProperty; - set setter = self::B|set#setter; - set property = self::B|set#property; - static set staticSetter = set self::B|staticSetter; - static set staticProperty = set self::B|staticProperty; - constructor _ = self::B|constructor#_; - constructor tearoff _ = self::B|constructor#_#_#tearOff; - constructor • = self::B|constructor#; - constructor tearoff • = self::B|constructor#_#new#tearOff; - constructor named = self::B|constructor#named; - constructor tearoff named = self::B|constructor#_#named#tearOff; -} -static extension-type-member method B|constructor#_(self::A a) → self::B% /* erasure=self::A, declared=! */ { - lowered final self::B% /* erasure=self::A, declared=! */ #this = a; - return #this; -} -static extension-type-member method B|constructor#_#_#tearOff(self::A a) → self::B% /* erasure=self::A, declared=! */ - return self::B|constructor#_(a); -external static extension-type-member method B|constructor#(self::A a) → self::B% /* erasure=self::A, declared=! */; -static extension-type-member method B|constructor#_#new#tearOff(self::A a) → self::B% /* erasure=self::A, declared=! */ - return js_2::_callConstructorUnchecked1<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), a); -external static extension-type-member method B|constructor#named(core::int i) → self::B% /* erasure=self::A, declared=! */; -static extension-type-member method B|constructor#_#named#tearOff(core::int i) → self::B% /* erasure=self::A, declared=! */ - return js_2::_callConstructorUnchecked1<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), i); -external static extension-type-member method B|get#field(lowered self::A #this) → self::A; -external static extension-type-member method B|set#field(lowered self::A #this, synthesized self::A #externalFieldValue) → void; -external static extension-type-member method B|method(lowered final self::B% /* erasure=self::A, declared=! */ #this) → self::A; -static extension-type-member method B|get#method(lowered final self::B% /* erasure=self::A, declared=! */ #this) → () → self::A - return () → self::A => js_2::_callMethodUnchecked0<self::A>(#this, "method"); -external static extension-type-member method B|genericMethod<T extends self::B% /* erasure=self::A, declared=! */>(lowered final self::B% /* erasure=self::A, declared=! */ #this, self::B|genericMethod::T% t) → self::B|genericMethod::T%; -static extension-type-member method B|get#genericMethod(lowered final self::B% /* erasure=self::A, declared=! */ #this) → <T extends self::B% /* erasure=self::A, declared=! */>(T%) → T% - return <T extends self::B% /* erasure=self::A, declared=! */>(T% t) → T% => js_2::_callMethodUnchecked1<T%>(#this, "genericMethod", t); -external static extension-type-member method B|get#getter(lowered final self::B% /* erasure=self::A, declared=! */ #this) → self::B% /* erasure=self::A, declared=! */; -external static extension-type-member method B|set#setter(lowered final self::B% /* erasure=self::A, declared=! */ #this, self::B% /* erasure=self::A, declared=! */ b) → void; -external static extension-type-member method B|get#property(lowered final self::B% /* erasure=self::A, declared=! */ #this) → self::B% /* erasure=self::A, declared=! */; -external static extension-type-member method B|set#property(lowered final self::B% /* erasure=self::A, declared=! */ #this, self::B% /* erasure=self::A, declared=! */ b) → void; -external static extension-type-member get B|staticField() → self::A; -external static extension-type-member set B|staticField(synthesized self::A #externalFieldValue) → void; -external static extension-type-member method B|staticMethod() → self::A; -external static extension-type-member method B|staticGenericMethod<T extends self::B% /* erasure=self::A, declared=! */>(self::B|staticGenericMethod::T% t) → self::B|staticGenericMethod::T%; -external static extension-type-member get B|staticGetter() → self::B% /* erasure=self::A, declared=! */; -external static extension-type-member set B|staticSetter(self::B% /* erasure=self::A, declared=! */ b) → void; -external static extension-type-member get B|staticProperty() → self::B% /* erasure=self::A, declared=! */; -external static extension-type-member set B|staticProperty(self::B% /* erasure=self::A, declared=! */ b) → void; -static method method(self::A a) → void { - self::B% /* erasure=self::A, declared=! */ b1 = js_2::_callConstructorUnchecked1<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), a); - self::B% /* erasure=self::A, declared=! */ b2 = js_2::_callConstructorUnchecked1<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), 0); - a = js_2::getProperty<self::A>(b1, "field"); - js_2::_setPropertyUnchecked<self::A>(b1, "field", a); - a = js_2::_callMethodUnchecked0<self::A>(b1, "method"); - b2 = js_2::_callMethodUnchecked1<self::B% /* erasure=self::A, declared=! */>(b2, "genericMethod", b2); - b1 = js_2::getProperty<self::B% /* erasure=self::A, declared=! */>(b2, "getter"); - js_2::_setPropertyUnchecked<self::B% /* erasure=self::A, declared=! */>(b1, "setter", b2); - js_2::_setPropertyUnchecked<self::B% /* erasure=self::A, declared=! */>(b1, "property", js_2::getProperty<self::B% /* erasure=self::A, declared=! */>(b2, "property")); - a = js_2::getProperty<self::A>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticField"); - js_2::_setPropertyUnchecked<self::A>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticField", a); - a = js_2::_callMethodUnchecked0<self::A>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticMethod"); - b2 = js_2::_callMethodUnchecked1<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticGenericMethod", b2); - b1 = js_2::getProperty<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticGetter"); - js_2::_setPropertyUnchecked<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticSetter", b2); - js_2::_setPropertyUnchecked<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticProperty", js_2::getProperty<self::B% /* erasure=self::A, declared=! */>(js_2::_getPropertyTrustType<core::Object>(_js2::staticInteropGlobalContext, "B"), "staticProperty")); -} - -constants { - #C1 = null - #C2 = js_::JS {name:#C1} - #C3 = _js::_StaticInterop {} -} - - -Constructor coverage from constants: -org-dartlang-testcase:///external.dart: -- JS. (from org-dartlang-sdk:///lib/js_interop/js_interop.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/extension_types/issue51285.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/extension_types/issue51285.dart.weak.transformed.expect deleted file mode 100644 index 74d224a..0000000 --- a/pkg/front_end/testcases/dart2js/extension_types/issue51285.dart.weak.transformed.expect +++ /dev/null
@@ -1,81 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -extension type I(core::int i) { - abstract extension-type-member representation-field get i() → core::int; - constructor _ = self::I|constructor#_; - constructor tearoff _ = self::I|constructor#_#_#tearOff; - static factory • = self::I|constructor#; - static factory tearoff • = self::I|constructor#_#new#tearOff; -} -extension type J(core::int i) { - abstract extension-type-member representation-field get i() → core::int; - constructor _ = self::J|constructor#_; - constructor tearoff _ = self::J|constructor#_#_#tearOff; - static factory • = self::J|constructor#; - static factory tearoff • = self::J|constructor#_#new#tearOff; -} -extension type K<T extends core::Object? = dynamic>(T% i) { - abstract extension-type-member representation-field get i() → T%; - constructor _ = self::K|constructor#_; - constructor tearoff _ = self::K|constructor#_#_#tearOff; - static factory • = self::K|constructor#; - static factory tearoff • = self::K|constructor#_#new#tearOff; -} -static extension-type-member method I|constructor#_(core::int i) → self::I% /* erasure=core::int, declared=! */ { - lowered final self::I% /* erasure=core::int, declared=! */ #this = i; - return #this; -} -static extension-type-member method I|constructor#_#_#tearOff(core::int i) → self::I% /* erasure=core::int, declared=! */ - return self::I|constructor#_(i); -static extension-type-member method I|constructor#() → self::I% /* erasure=core::int, declared=! */ - return 0 as self::I% /* erasure=core::int, declared=! */; -static extension-type-member method I|constructor#_#new#tearOff() → self::I% /* erasure=core::int, declared=! */ - return self::I|constructor#(); -static extension-type-member method J|constructor#_(core::int i) → self::J% /* erasure=core::int, declared=! */ { - lowered final self::J% /* erasure=core::int, declared=! */ #this = i; - return #this; -} -static extension-type-member method J|constructor#_#_#tearOff(core::int i) → self::J% /* erasure=core::int, declared=! */ - return self::J|constructor#_(i); -static extension-type-member method J|constructor#(core::int i) → self::J% /* erasure=core::int, declared=! */ - return self::J|constructor#_(i); -static extension-type-member method J|constructor#_#new#tearOff(core::int i) → self::J% /* erasure=core::int, declared=! */ - return self::J|constructor#(i); -static extension-type-member method K|constructor#_<T extends core::Object? = dynamic>(self::K|constructor#_::T% i) → self::K<self::K|constructor#_::T%>% /* erasure=self::K|constructor#_::T%, declared=! */ { - lowered final self::K<self::K|constructor#_::T%>% /* erasure=self::K|constructor#_::T%, declared=! */ #this = i; - return #this; -} -static extension-type-member method K|constructor#_#_#tearOff<T extends core::Object? = dynamic>(self::K|constructor#_#_#tearOff::T% i) → self::K<self::K|constructor#_#_#tearOff::T%>% /* erasure=self::K|constructor#_#_#tearOff::T%, declared=! */ - return self::K|constructor#_<self::K|constructor#_#_#tearOff::T%>(i); -static extension-type-member method K|constructor#<T extends core::Object? = dynamic>(self::K|constructor#::T% i) → self::K<self::K|constructor#::T%>% /* erasure=self::K|constructor#::T%, declared=! */ - return self::K|constructor#_<self::K|constructor#::T%>(i); -static extension-type-member method K|constructor#_#new#tearOff<T extends core::Object? = dynamic>(self::K|constructor#_#new#tearOff::T% i) → self::K<self::K|constructor#_#new#tearOff::T%>% /* erasure=self::K|constructor#_#new#tearOff::T%, declared=! */ - return self::K|constructor#<self::K|constructor#_#new#tearOff::T%>(i); -static method main() → dynamic { - self::expect(0, self::I|constructor#()); - self::expect(0, #C1(){() → self::I% /* erasure=core::int, declared=! */}); - self::expect(42, self::J|constructor#(42)); - self::expect(87, self::J|constructor#(87)); - self::expect(123, #C2(123){(core::int) → self::J% /* erasure=core::int, declared=! */}); - self::expect("foo", self::K|constructor#<core::String>("foo")); - self::expect("bar", self::K|constructor#<core::String>("bar")); - self::expect("baz", #C3<core::String>("baz"){(core::String) → self::K<core::String>% /* erasure=core::String, declared=! */}); - self::expect("boz", #C4("boz"){(core::String) → self::K<core::String>% /* erasure=core::String, declared=! */}); -} -static method expect(dynamic expected, dynamic actual) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual}"; -} - -constants { - #C1 = static-tearoff self::I|constructor#_#new#tearOff - #C2 = static-tearoff self::J|constructor#_#new#tearOff - #C3 = static-tearoff self::K|constructor#_#new#tearOff - #C4 = instantiation #C3 <core::String*> -} - -Extra constant evaluation status: -Evaluated: AsExpression @ org-dartlang-testcase:///issue51285.dart:6:20 -> DoubleConstant(0.0) -Extra constant evaluation: evaluated: 48, effectively constant: 1
diff --git a/pkg/front_end/testcases/dart2js/flutter_issue94561/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/flutter_issue94561/main.dart.weak.transformed.expect deleted file mode 100644 index e860819..0000000 --- a/pkg/front_end/testcases/dart2js/flutter_issue94561/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,38 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/flutter_issue94561/main.dart:8:9: Error: Setter not found: 'a'. -// MyInt.a = 42; -// ^ -// -import self as self; -import "dart:core" as core; -import "main_lib.dart" as mai; - -import "org-dartlang-testcase:///main_lib.dart"; - -static method main() → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/flutter_issue94561/main.dart:8:9: Error: Setter not found: 'a'. - MyInt.a = 42; - ^"; - core::print(mai::_#MyInt|a); - mai::MyInt|b = 87; - core::print(mai::MyInt|b); -} - -library; -import self as mai; -import "dart:core" as core; -import "dart:_late_helper" as _la; - -extension MyInt on core::int { - static field a = mai::_#MyInt|a; - static field b = mai::MyInt|b; -} -static final field _la::_Cell _#MyInt|a = new _la::_Cell::named("MyInt|a"); -late static field core::int MyInt|b = 42; -static get MyInt|a() → core::int - return mai::_#MyInt|a.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set MyInt|a(synthesized core::int value) → void - return mai::_#MyInt|a.{_la::_Cell::value} = value;
diff --git a/pkg/front_end/testcases/dart2js/flutter_issue94561/main.no_link.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/flutter_issue94561/main.no_link.dart.weak.transformed.expect deleted file mode 100644 index 76449ad..0000000 --- a/pkg/front_end/testcases/dart2js/flutter_issue94561/main.no_link.dart.weak.transformed.expect +++ /dev/null
@@ -1,29 +0,0 @@ -library; -import self as self; -import "main_lib.dart" as mai; -import "dart:core" as core; - -import "org-dartlang-testcase:///main_lib.dart"; - -static method main() → dynamic { - mai::MyInt|a = 42; - core::print(mai::MyInt|a); - mai::MyInt|b = 87; - core::print(mai::MyInt|b); -} - -library; -import self as mai; -import "dart:core" as core; -import "dart:_late_helper" as _la; - -extension MyInt on core::int { - static field a = mai::_#MyInt|a; - static field b = mai::MyInt|b; -} -static final field _la::_Cell _#MyInt|a = new _la::_Cell::named("MyInt|a"); -late static field core::int MyInt|b = 42; -static get MyInt|a() → core::int - return mai::_#MyInt|a.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set MyInt|a(synthesized core::int value) → void - return mai::_#MyInt|a.{_la::_Cell::value} = value;
diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect deleted file mode 100644 index 3f33827..0000000 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect +++ /dev/null
@@ -1,97 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -import "dart:async"; - -typedef T<X extends core::Object? = dynamic> = X%; -abstract class C extends core::Object { - static field self::C? v1 = null; - static field core::List<dynamic> v2 = <dynamic>[]; - static final field Null v3 = throw "Anything"; - static const field core::List<core::List<dynamic>> v4 = #C1; - field self::D? v5; - field core::List<dynamic> v6 = <dynamic>[]; - final field Null v7; - constructor •() → self::C - : self::C::v5 = null, self::C::v7 = null, super core::Object::•() - ; - constructor name1(self::D? v5, Null v7) → self::C - : self::C::v5 = v5, self::C::v7 = v7, super core::Object::•() - ; - static factory name2(self::D arg1, Null arg2) → self::C /* redirection-target: self::C1::name1 */ - return new self::C1::name1(arg1, arg2); - static method _#name2#tearOff(self::D arg1, Null arg2) → self::C - return new self::C1::name1(arg1, arg2); - abstract operator +(core::double other) → core::double; - abstract get g() → FutureOr<FutureOr<void>>; - abstract set g(FutureOr<FutureOr<void>>value) → void; - abstract method m1(covariant-by-declaration self::C arg1, [core::Set<core::Set<self::C>> arg2 = #C2]) → core::Map<self::C, self::C>; - abstract method m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) → core::Map<dynamic, dynamic> arg2 = #C2}) → void; -} -class C1 extends core::Object implements self::C { - constructor name1(self::D arg1, Null arg2) → self::C1 - : super core::Object::•() - ; - static method _#name1#tearOff(self::D arg1, Null arg2) → self::C1 - return new self::C1::name1(arg1, arg2); - method noSuchMethod(core::Invocation invocation) → dynamic - return throw 0; - no-such-method-forwarder get v5() → self::D? - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v5", <dynamic>[], <dynamic>[], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} self::D?; - no-such-method-forwarder set v5(self::D? value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v5=", <dynamic>[], <dynamic>[value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get v6() → core::List<dynamic> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", <dynamic>[], <dynamic>[], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List<dynamic>; - no-such-method-forwarder set v6(core::List<dynamic> value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", <dynamic>[], <dynamic>[value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get v7() → Null - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", <dynamic>[], <dynamic>[], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; - no-such-method-forwarder operator +(core::double other) → core::double - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", <dynamic>[], <dynamic>[other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; - no-such-method-forwarder get g() → FutureOr<FutureOr<void>> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", <dynamic>[], <dynamic>[], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr<FutureOr<void>>; - no-such-method-forwarder set g(FutureOr<FutureOr<void>>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", <dynamic>[], <dynamic>[value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder method /* signature-type: (self::C, [core::Set<core::Set<self::C>>]) → core::Map<self::C, self::C> */ m1(covariant-by-declaration self::C arg1, [core::Set<core::Set<self::C>>? arg2 = #C2]) → core::Map<self::C, self::C> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", <dynamic>[], <dynamic>[arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map<self::C, self::C>; - no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map<dynamic, dynamic>}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map<dynamic, dynamic> arg2 = #C2}) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m2", <dynamic>[], <dynamic>[], <core::String, dynamic>{"arg1": arg1, "arg2": arg2}, 0)){(core::Invocation) → dynamic}; -} -class D extends core::Object { - synthetic constructor •() → self::D - : super core::Object::•() - ; - static method _#new#tearOff() → self::D - return new self::D::•(); -} -extension E on dynamic { - method foo = self::E|foo; - method tearoff foo = self::E|get#foo; -} -static field core::int? v1; -static field core::List<void> v2 = <void>[]; -static final field core::String v3 = throw "Anything"; -static const field core::List<self::C> v4 = #C4; -static const field core::Map<core::Type, core::Type> v5 = #C6; -static extension-member method E|foo(lowered final dynamic #this, dynamic t) → dynamic - return t; -static extension-member method E|get#foo(lowered final dynamic #this) → (dynamic) → dynamic - return (dynamic t) → dynamic => self::E|foo(#this, t); -static method main() → dynamic { - core::List<self::C> v8 = <self::C>[]; - core::Map<core::Set<dynamic>, core::Set<dynamic>> v9 = <core::Set<dynamic>, core::Set<dynamic>>{<dynamic>{}: <dynamic>{}}; - core::Set<core::List<self::C>> v10 = <core::List<self::C>>{v8}; - v9.{core::Map::[]=}(<dynamic>{}, <dynamic>{42}){(core::Set<dynamic>, core::Set<dynamic>) → void}; - core::Set<core::List<self::C>> v11 = v10; - v10 = v11; -} - -constants { - #C1 = <core::List<dynamic>*>[] - #C2 = null - #C3 = <core::String*, dynamic>{} - #C4 = <self::C*>[] - #C5 = TypeLiteralConstant(dynamic) - #C6 = <core::Type*, core::Type*>{#C5:#C5} -}
diff --git a/pkg/front_end/testcases/dart2js/instance_getter_invocation.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/instance_getter_invocation.dart.weak.transformed.expect deleted file mode 100644 index 6a7c916..0000000 --- a/pkg/front_end/testcases/dart2js/instance_getter_invocation.dart.weak.transformed.expect +++ /dev/null
@@ -1,33 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class Class extends core::Object { - synthetic constructor •() → self::Class - : super core::Object::•() - ; - get idFunction() → <S extends core::Object? = dynamic>(S%) → S% - return #C1; - get dynFunction() → dynamic - return #C1; - static method _#new#tearOff() → self::Class - return new self::Class::•(); -} -static method id<T extends core::Object? = dynamic>(self::id::T% t) → self::id::T% - return t; -static method main() → dynamic { - self::Class c = new self::Class::•(); - let final self::Class #t1 = c in let final core::int #t2 = 0 in #t1.{self::Class::idFunction}<core::int>(#t2){(core::int) → core::int}; - let final self::Class #t3 = c in let final core::int #t4 = 0 in #t3.{self::Class::idFunction}<core::int>(#t4){(core::int) → core::int}; - let final self::Class #t5 = c in let final core::int #t6 = 0 in #t5.{self::Class::dynFunction}(#t6); -} - -constants { - #C1 = static-tearoff self::id -} - -Extra constant evaluation status: -Evaluated: VariableGet @ org-dartlang-testcase:///instance_getter_invocation.dart:14:16 -> DoubleConstant(0.0) -Evaluated: VariableGet @ org-dartlang-testcase:///instance_getter_invocation.dart:15:21 -> DoubleConstant(0.0) -Evaluated: VariableGet @ org-dartlang-testcase:///instance_getter_invocation.dart:16:17 -> DoubleConstant(0.0) -Extra constant evaluation: evaluated: 21, effectively constant: 3
diff --git a/pkg/front_end/testcases/dart2js/invalid_redirection.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/invalid_redirection.dart.weak.transformed.expect deleted file mode 100644 index 1c8baba..0000000 --- a/pkg/front_end/testcases/dart2js/invalid_redirection.dart.weak.transformed.expect +++ /dev/null
@@ -1,46 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/invalid_redirection.dart:13:40: Error: The constructor function type 'A<T> Function()' isn't a subtype of 'B<T> Function(int)'. -// - 'A' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. -// - 'B' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. -// factory B.test05(int incompatible) = A<T>; -// ^ -// -import self as self; -import "dart:core" as core; - -class A<T extends core::Object? = dynamic> extends core::Object implements self::B<self::A::T%> { - final field self::A::T? x; - constructor •() → self::A<self::A::T%> - : self::A::x = null, super core::Object::•() - ; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::A<self::A::_#new#tearOff::T%> - return new self::A::•<self::A::_#new#tearOff::T%>(); -} -class B<T extends core::Object? = dynamic> extends core::Object { - static factory test05<T extends core::Object? = dynamic>(core::int incompatible = #C1) → self::B<self::B::test05::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/invalid_redirection.dart:13:40: Error: The constructor function type 'A<T> Function()' isn't a subtype of 'B<T> Function(int)'. - - 'A' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - - 'B' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - factory B.test05(int incompatible) = A<T>; - ^"; - static method _#test05#tearOff<T extends core::Object? = dynamic>(core::int incompatible = #C1) → self::B<self::B::_#test05#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/invalid_redirection.dart:13:40: Error: The constructor function type 'A<T> Function()' isn't a subtype of 'B<T> Function(int)'. - - 'A' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - - 'B' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - factory B.test05(int incompatible) = A<T>; - ^"; -} -static method test() → dynamic { - invalid-expression "pkg/front_end/testcases/dart2js/invalid_redirection.dart:13:40: Error: The constructor function type 'A<T> Function()' isn't a subtype of 'B<T> Function(int)'. - - 'A' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - - 'B' is from 'pkg/front_end/testcases/dart2js/invalid_redirection.dart'. - factory B.test05(int incompatible) = A<T>; - ^"; -} - -constants { - #C1 = null -}
diff --git a/pkg/front_end/testcases/dart2js/issue41657.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue41657.dart.weak.transformed.expect deleted file mode 100644 index 270fd05..0000000 --- a/pkg/front_end/testcases/dart2js/issue41657.dart.weak.transformed.expect +++ /dev/null
@@ -1,35 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -static final field core::bool isLegacySubtyping1a = #C1 is core::List<core::int>; -static const field core::bool isLegacySubtyping1b = #C2; -static final field core::bool isLegacySubtyping2a = #C3 is core::List<core::int>; -static const field core::bool isLegacySubtyping2b = #C2; -static final field core::List<core::int> assertLegacySubtyping1a = #C1 as core::List<core::int>; -static const field core::List<core::int> assertLegacySubtyping1b = #C1; -static final field core::List<core::int> assertLegacySubtyping2a = #C3 as core::List<core::int>; -static const field core::List<core::int> assertLegacySubtyping2b = #C3; -static method main() → void { - self::expect(self::isLegacySubtyping1a, #C2); - self::expect(self::isLegacySubtyping2a, #C2); - self::expect(self::assertLegacySubtyping1a, #C1); - self::expect(self::assertLegacySubtyping2a, #C3); -} -static method expect(dynamic expected, dynamic actual) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual}"; -} - -constants { - #C1 = <Null>[] - #C2 = true - #C3 = <core::int?>[] -} - -Extra constant evaluation status: -Evaluated: IsExpression @ org-dartlang-testcase:///issue41657.dart:5:44 -> BoolConstant(true) -Evaluated: IsExpression @ org-dartlang-testcase:///issue41657.dart:7:44 -> BoolConstant(true) -Evaluated: AsExpression @ org-dartlang-testcase:///issue41657.dart:9:48 -> ListConstant(const <Null>[]) -Evaluated: AsExpression @ org-dartlang-testcase:///issue41657.dart:11:48 -> ListConstant(const <int?>[]) -Extra constant evaluation: evaluated: 20, effectively constant: 4
diff --git a/pkg/front_end/testcases/dart2js/issue47916.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916.dart.weak.transformed.expect deleted file mode 100644 index 4bee770..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916.dart.weak.transformed.expect +++ /dev/null
@@ -1,30 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract class A extends core::Object { - static factory •() → self::A /* redirection-target: self::B::• */ - return self::B::•(); - static method _#new#tearOff() → self::A - return new self::C::•(); -} -abstract class B extends core::Object implements self::A { - static factory •() → self::B /* redirection-target: self::C::• */ - return new self::C::•(); - static method _#new#tearOff() → self::B - return new self::C::•(); -} -class C extends core::Object implements self::B /*hasConstConstructor*/ { - const constructor •() → self::C - : super core::Object::•() - ; - static method _#new#tearOff() → self::C - return new self::C::•(); -} -static method main() → dynamic { - #C1; -} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/issue47916b.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916b.dart.weak.transformed.expect deleted file mode 100644 index be344d4d..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916b.dart.weak.transformed.expect +++ /dev/null
@@ -1,37 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract class A<T extends core::Object? = dynamic> extends core::Object { - static factory •<T extends core::Object? = dynamic>() → self::A<self::A::•::T%> /* redirection-target: self::B::•<dynamic, self::A::•::T%>*/ - return self::B::•<dynamic, self::A::•::T%>(); - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::A<self::A::_#new#tearOff::T%> - return new self::C::•<self::A::_#new#tearOff::T%, dynamic, dynamic>(); -} -abstract class B<S extends core::Object? = dynamic, T extends core::Object? = dynamic> extends core::Object implements self::A<self::B::T%> { - static factory •<S extends core::Object? = dynamic, T extends core::Object? = dynamic>() → self::B<self::B::•::S%, self::B::•::T%> /* redirection-target: self::C::•<self::B::•::T%, self::B::•::S%, dynamic>*/ - return new self::C::•<self::B::•::T%, self::B::•::S%, dynamic>(); - static method _#new#tearOff<S extends core::Object? = dynamic, T extends core::Object? = dynamic>() → self::B<self::B::_#new#tearOff::S%, self::B::_#new#tearOff::T%> - return new self::C::•<self::B::_#new#tearOff::T%, self::B::_#new#tearOff::S%, dynamic>(); -} -class C<T extends core::Object? = dynamic, S extends core::Object? = dynamic, U extends core::Object? = dynamic> extends core::Object implements self::B<self::C::S%, self::C::T%> /*hasConstConstructor*/ { - const constructor •() → self::C<self::C::T%, self::C::S%, self::C::U%> - : super core::Object::•() - ; - static method _#new#tearOff<T extends core::Object? = dynamic, S extends core::Object? = dynamic, U extends core::Object? = dynamic>() → self::C<self::C::_#new#tearOff::T%, self::C::_#new#tearOff::S%, self::C::_#new#tearOff::U%> - return new self::C::•<self::C::_#new#tearOff::T%, self::C::_#new#tearOff::S%, self::C::_#new#tearOff::U%>(); -} -static method main() → dynamic { - #C2; - #C4; - #C6; -} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff - #C2 = instantiation #C1 <core::int*> - #C3 = static-tearoff self::B::_#new#tearOff - #C4 = instantiation #C3 <core::String*, core::double*> - #C5 = static-tearoff self::C::_#new#tearOff - #C6 = instantiation #C5 <core::bool*, core::num*, void> -}
diff --git a/pkg/front_end/testcases/dart2js/issue47916c.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916c.dart.weak.transformed.expect deleted file mode 100644 index 06245cd..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916c.dart.weak.transformed.expect +++ /dev/null
@@ -1,35 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract class A extends core::Object { - static factory •() → self::A /* redirection-target: self::B::• */ - return self::B::•(); - static method _#new#tearOff() → self::A - return new self::C::•<core::int>(); -} -abstract class B extends core::Object implements self::A { - static factory •() → self::B /* redirection-target: self::C::•<core::int>*/ - return new self::C::•<core::int>(); - static method _#new#tearOff() → self::B - return new self::C::•<core::int>(); -} -class C<T extends core::Object? = dynamic> extends core::Object implements self::B /*hasConstConstructor*/ { - const constructor •() → self::C<self::C::T%> - : super core::Object::•() - ; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::C<self::C::_#new#tearOff::T%> - return new self::C::•<self::C::_#new#tearOff::T%>(); -} -static method main() → dynamic { - #C1; - #C2; - #C4; -} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff - #C2 = static-tearoff self::B::_#new#tearOff - #C3 = static-tearoff self::C::_#new#tearOff - #C4 = instantiation #C3 <core::String*> -}
diff --git a/pkg/front_end/testcases/dart2js/issue47916d.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916d.dart.weak.transformed.expect deleted file mode 100644 index d9a9593..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916d.dart.weak.transformed.expect +++ /dev/null
@@ -1,61 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/issue47916d.dart:6:17: Error: Cyclic definition of factory 'A'. -// const factory A() = B; -// ^ -// -// pkg/front_end/testcases/dart2js/issue47916d.dart:10:17: Error: Cyclic definition of factory 'B'. -// const factory B() = C; -// ^ -// -// pkg/front_end/testcases/dart2js/issue47916d.dart:14:17: Error: Cyclic definition of factory 'C'. -// const factory C() = A; -// ^ -// -import self as self; -import "dart:core" as core; - -abstract class A<T extends core::Object? = dynamic> extends core::Object { - static factory •<T extends core::Object? = dynamic>() → self::A<self::A::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:6:17: Error: Cyclic definition of factory 'A'. - const factory A() = B; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::A<self::A::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:6:17: Error: Cyclic definition of factory 'A'. - const factory A() = B; - ^"; -} -abstract class B<T extends core::Object? = dynamic> extends core::Object implements self::A<self::B::T%> { - static factory •<T extends core::Object? = dynamic>() → self::B<self::B::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::B<self::B::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; -} -class C<T extends core::Object? = dynamic> extends core::Object implements self::B<self::C::T%> { - static factory •<T extends core::Object? = dynamic>() → self::C<self::C::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:14:17: Error: Cyclic definition of factory 'C'. - const factory C() = A; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::C<self::C::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916d.dart:14:17: Error: Cyclic definition of factory 'C'. - const factory C() = A; - ^"; -} -static method test() → dynamic { - #C1; - #C2; - #C3; -} -static method main() → dynamic {} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff - #C2 = static-tearoff self::B::_#new#tearOff - #C3 = static-tearoff self::C::_#new#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/issue47916e.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916e.dart.weak.transformed.expect deleted file mode 100644 index c52c3f6..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916e.dart.weak.transformed.expect +++ /dev/null
@@ -1,52 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/issue47916e.dart:10:23: Error: Redirection constructor target not found: 'C.named' -// const factory B() = C.named; -// ^ -// -import self as self; -import "dart:core" as core; - -abstract class A extends core::Object { - static factory •() → self::A - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916e.dart:10:23: Error: Redirection constructor target not found: 'C.named' - const factory B() = C.named; - ^"; - static method _#new#tearOff() → self::A - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916e.dart:10:23: Error: Redirection constructor target not found: 'C.named' - const factory B() = C.named; - ^"; -} -abstract class B extends core::Object implements self::A { - static factory •() → self::B - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916e.dart:10:23: Error: Redirection constructor target not found: 'C.named' - const factory B() = C.named; - ^"; - static method _#new#tearOff() → self::B - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916e.dart:10:23: Error: Redirection constructor target not found: 'C.named' - const factory B() = C.named; - ^"; -} -class C extends core::Object implements self::B { - synthetic constructor •() → self::C - : super core::Object::•() - ; - static method named() → self::C - return new self::C::•(); - static method _#new#tearOff() → self::C - return new self::C::•(); -} -static method test() → dynamic { - #C1; - #C2; - #C3; -} -static method main() → dynamic {} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff - #C2 = static-tearoff self::B::_#new#tearOff - #C3 = static-tearoff self::C::named -}
diff --git a/pkg/front_end/testcases/dart2js/issue47916f.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue47916f.dart.weak.transformed.expect deleted file mode 100644 index 22cff62..0000000 --- a/pkg/front_end/testcases/dart2js/issue47916f.dart.weak.transformed.expect +++ /dev/null
@@ -1,57 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/issue47916f.dart:10:17: Error: Cyclic definition of factory 'B'. -// const factory B() = C; -// ^ -// -// pkg/front_end/testcases/dart2js/issue47916f.dart:14:17: Error: Cyclic definition of factory 'C'. -// const factory C() = B; -// ^ -// -import self as self; -import "dart:core" as core; - -abstract class A<T extends core::Object? = dynamic> extends core::Object { - static factory •<T extends core::Object? = dynamic>() → self::A<self::A::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::A<self::A::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; -} -abstract class B<T extends core::Object? = dynamic> extends core::Object implements self::A<self::B::T%> { - static factory •<T extends core::Object? = dynamic>() → self::B<self::B::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::B<self::B::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:10:17: Error: Cyclic definition of factory 'B'. - const factory B() = C; - ^"; -} -class C<T extends core::Object? = dynamic> extends core::Object implements self::B<self::C::T%> { - static factory •<T extends core::Object? = dynamic>() → self::C<self::C::•::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:14:17: Error: Cyclic definition of factory 'C'. - const factory C() = B; - ^"; - static method _#new#tearOff<T extends core::Object? = dynamic>() → self::C<self::C::_#new#tearOff::T%> - return invalid-expression "pkg/front_end/testcases/dart2js/issue47916f.dart:14:17: Error: Cyclic definition of factory 'C'. - const factory C() = B; - ^"; -} -static method test() → dynamic { - #C1; - #C2; - #C3; -} -static method main() → dynamic {} - -constants { - #C1 = static-tearoff self::A::_#new#tearOff - #C2 = static-tearoff self::B::_#new#tearOff - #C3 = static-tearoff self::C::_#new#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/issue48304.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue48304.dart.weak.transformed.expect deleted file mode 100644 index 80fc012..0000000 --- a/pkg/front_end/testcases/dart2js/issue48304.dart.weak.transformed.expect +++ /dev/null
@@ -1,41 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract class B extends core::Object { - synthetic constructor •() → self::B - : super core::Object::•() - ; - abstract method call<T extends core::Object? = dynamic>() → dynamic; -} -class C extends core::Object implements self::B { - synthetic constructor •() → self::C - : super core::Object::•() - ; - method call<T extends core::Object? = dynamic>() → dynamic - return core::print(self::C::call::T%); - static method _#new#tearOff() → self::C - return new self::C::•(); -} -abstract class A extends core::Object { - synthetic constructor •() → self::A - : super core::Object::•() - ; -} -class Wrapper extends core::Object { - final field self::B b; - final field self::B call; - constructor •(self::B b, self::B call) → self::Wrapper - : self::Wrapper::b = b, self::Wrapper::call = call, super core::Object::•() - ; - static method _#new#tearOff(self::B b, self::B call) → self::Wrapper - return new self::Wrapper::•(b, call); -} -static method main() → void { - self::B b = new self::C::•(); - b.{self::B::call}<self::A>(){() → dynamic}; - new self::Wrapper::•(b, b).{self::Wrapper::b}<self::A>(){() → dynamic}; - new self::Wrapper::•(b, b).{self::Wrapper::b}{self::B}.{self::B::call}<self::A>(){() → dynamic}; - new self::Wrapper::•(b, b).{self::Wrapper::call}<self::A>(){() → dynamic}; - new self::Wrapper::•(b, b).{self::Wrapper::call}{self::B}.{self::B::call}<self::A>(){() → dynamic}; -}
diff --git a/pkg/front_end/testcases/dart2js/issue48776.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue48776.dart.weak.transformed.expect deleted file mode 100644 index 7fd1141..0000000 --- a/pkg/front_end/testcases/dart2js/issue48776.dart.weak.transformed.expect +++ /dev/null
@@ -1,11 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -static method main() → dynamic { - #C1; -} - -constants { - #C1 = static-tearoff core::BigInt::_#from#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/issue49198.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue49198.dart.weak.transformed.expect deleted file mode 100644 index fd80991..0000000 --- a/pkg/front_end/testcases/dart2js/issue49198.dart.weak.transformed.expect +++ /dev/null
@@ -1,18 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -static final field core::bool inSoundMode = !(<core::int?>[] is core::List<core::int>); -static method main() → dynamic { - try { - throw (null as dynamic) as{TypeError} core::Object; - } - on core::TypeError catch(final core::TypeError e) { - core::print("${e.{core::Object::runtimeType}{core::Type}}:${e}"); - } -} - - -Extra constant evaluation status: -Evaluated: AsExpression @ org-dartlang-testcase:///issue49198.dart:9:16 -> NullConstant(null) -Extra constant evaluation: evaluated: 10, effectively constant: 1
diff --git a/pkg/front_end/testcases/dart2js/issue51823.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue51823.dart.weak.transformed.expect deleted file mode 100644 index cfda8c8..0000000 --- a/pkg/front_end/testcases/dart2js/issue51823.dart.weak.transformed.expect +++ /dev/null
@@ -1,67 +0,0 @@ -library; -import self as self; -import "issue51823_lib.dart" as iss; - -import "org-dartlang-testcase:///issue51823_lib.dart"; - -static const field iss::E a = #C9; - -library; -import self as iss; -import "dart:core" as core; -import "dart:_internal" as _in; - -class E extends core::_Enum /*isEnum*/ { - enum-element static const field iss::E a = #C10; - enum-element static const field iss::E b = #C11; - static const field core::List<iss::E> values = #C12; - const synthetic constructor •(core::int #index, core::String #name) → iss::E - : super core::_Enum::•(#index, #name) - ; - method _enumToString() → core::String - return "E.${this.{core::_Enum::_name}{core::String}}"; -} -static method method(iss::E e) → dynamic { - #L1: - switch(e) /* isExplicitlyExhaustive, iss::E */ { - #L2: - case #C10: - { - return 0; - } - #L3: - case #C11: - { - return 1; - } - #L4: - default: - throw{for-error-handling} new _in::ReachabilityError::•("`null` encountered as case in a switch statement with a non-nullable type."); - } -} - -constants { - #C1 = "foo" - #C2 = eval /* from org-dartlang-testcase:///issue51823.dart */ const core::bool::fromEnvironment(#C1) - #C3 = 0.0 - #C4 = "a" - #C5 = eval /* from org-dartlang-testcase:///issue51823_lib.dart */ iss::E{index:#C3, _name:#C4} - #C6 = 1.0 - #C7 = "b" - #C8 = eval /* from org-dartlang-testcase:///issue51823_lib.dart */ iss::E{index:#C6, _name:#C7} - #C9 = eval /* from org-dartlang-testcase:///issue51823.dart */ #C2 ?{iss::E} #C5 : #C8 - #C10 = iss::E {index:#C3, _name:#C4} - #C11 = iss::E {index:#C6, _name:#C7} - #C12 = <iss::E*>[#C10, #C11] -} - -Extra constant evaluation status: -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///issue51823.dart:7:45 -> InstanceConstant(const E{_Enum.index: 1.0, _Enum._name: "b"}) -Extra constant evaluation: evaluated: 9, effectively constant: 1 - - -Constructor coverage from constants: -org-dartlang-testcase:///issue51823_lib.dart: -- E. (from org-dartlang-testcase:///issue51823_lib.dart:5:6) -- _Enum. (from org-dartlang-sdk:///lib/core/enum.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/issue52763.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue52763.dart.weak.transformed.expect deleted file mode 100644 index ba59c2b..0000000 --- a/pkg/front_end/testcases/dart2js/issue52763.dart.weak.transformed.expect +++ /dev/null
@@ -1,72 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract class B extends core::Object /*hasConstConstructor*/ { - final field core::bool autofocus; - const constructor •({required core::bool autofocus}) → self::B - : self::B::autofocus = autofocus, super core::Object::•() - ; -} -class O1 extends self::B /*hasConstConstructor*/ { - const constructor •({core::bool autofocus = #C1}) → self::O1 - : super self::B::•(autofocus: autofocus) - ; - static method _#new#tearOff({core::bool autofocus = #C1}) → self::O1 - return new self::O1::•(autofocus: autofocus); -} -class O2 extends self::B /*hasConstConstructor*/ { - const constructor •({core::bool autofocus = #C1}) → self::O2 - : super self::B::•(autofocus: autofocus) - ; - static method _#new#tearOff({core::bool autofocus = #C1}) → self::O2 - return new self::O2::•(autofocus: autofocus); -} -abstract class C extends core::Object /*hasConstConstructor*/ { - final field core::bool a; - final field core::bool b; - const constructor •({core::bool a = #C1, core::bool b = #C2}) → self::C - : self::C::a = a, self::C::b = b, super core::Object::•() - ; -} -class P1 extends self::C /*hasConstConstructor*/ { - final field core::int c; - const constructor •(core::int c, {core::bool a = #C1, core::bool b = #C2}) → self::P1 - : self::P1::c = c, super self::C::•(a: a, b: b) - ; - static method _#new#tearOff(core::int c, {core::bool a = #C1, core::bool b = #C2}) → self::P1 - return new self::P1::•(c, a: a, b: b); -} -class P2 extends self::C /*hasConstConstructor*/ { - const constructor •({core::bool b = #C2, core::bool a = #C1}) → self::P2 - : super self::C::•(b: b, a: a) - ; - static method _#new#tearOff({core::bool b = #C2, core::bool a = #C1}) → self::P2 - return new self::P2::•(b: b, a: a); -} -static method main() → dynamic { - ({autofocus: core::bool}) → self::O1 tearoff1 = #C3; - ({autofocus: core::bool}) → self::O2 tearoff2 = #C4; - (core::int, {a: core::bool, b: core::bool}) → self::P1 tearoff3 = #C5; - ({a: core::bool, b: core::bool}) → self::P2 tearoff4 = #C6; - self::expect(true, tearoff1(){({autofocus: core::bool}) → self::O1}.{self::B::autofocus}{core::bool}); - self::expect(true, tearoff2(){({autofocus: core::bool}) → self::O2}.{self::B::autofocus}{core::bool}); - self::expect(true, tearoff3(0){(core::int, {a: core::bool, b: core::bool}) → self::P1}.{self::C::a}{core::bool}); - self::expect(false, tearoff3(0){(core::int, {a: core::bool, b: core::bool}) → self::P1}.{self::C::b}{core::bool}); - self::expect(0, tearoff3(0){(core::int, {a: core::bool, b: core::bool}) → self::P1}.{self::P1::c}{core::int}); - self::expect(true, tearoff4(){({a: core::bool, b: core::bool}) → self::P2}.{self::C::a}{core::bool}); - self::expect(false, tearoff4(){({a: core::bool, b: core::bool}) → self::P2}.{self::C::b}{core::bool}); -} -static method expect(dynamic expected, dynamic actual) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual}"; -} - -constants { - #C1 = true - #C2 = false - #C3 = static-tearoff self::O1::_#new#tearOff - #C4 = static-tearoff self::O2::_#new#tearOff - #C5 = static-tearoff self::P1::_#new#tearOff - #C6 = static-tearoff self::P2::_#new#tearOff -}
diff --git a/pkg/front_end/testcases/dart2js/issue52805.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue52805.dart.weak.transformed.expect deleted file mode 100644 index be40cda..0000000 --- a/pkg/front_end/testcases/dart2js/issue52805.dart.weak.transformed.expect +++ /dev/null
@@ -1,36 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_internal" as _in; - -static method use(dynamic o) → dynamic {} -static method f(core::List<core::int> list) → () → void { - return block { - () → void #t1; - final synthesized core::List<core::int> #0#0 = list; - #L1: - { - { - final hoisted core::int item; - if(#0#0.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} #C1) { - item = #0#0.{core::List::[]}(0){(core::int) → core::int}; - #t1 = () → void { - self::use(item); - }; - break #L1; - } - } - { - if(true) { - #t1 = () → void {}; - break #L1; - } - } - throw{for-error-handling} new _in::ReachabilityError::•("`null` encountered as case in a switch expression with a non-nullable type."); - } - } =>#t1; -} - -constants { - #C1 = 1 -}
diff --git a/pkg/front_end/testcases/dart2js/issue53804.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue53804.dart.weak.transformed.expect deleted file mode 100644 index 87c01a0..0000000 --- a/pkg/front_end/testcases/dart2js/issue53804.dart.weak.transformed.expect +++ /dev/null
@@ -1,68 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_internal" as _in; - -class A extends core::Object { - field core::int? f1 = null; - field core::double? f2 = null; - synthetic constructor •() → self::A - : super core::Object::•() - ; - @#C3 - method foo() → core::String { - return block { - core::String #t1; - final synthesized(core::int?, core::double?) #0#0 = (this.{self::A::f1}{core::int?}, this.{self::A::f2}{core::double?}); - synthesized core::int? #0#1; - synthesized core::bool #0#1#isSet = false; - synthesized core::bool #0#4; - synthesized core::bool #0#4#isSet = false; - synthesized core::double? #0#2; - synthesized core::bool #0#2#isSet = false; - #L1: - { - { - final hoisted core::int? f1; - if(true) { - f1 = #0#1#isSet ?{core::int?} #0#1{core::int?} : let final core::bool #t2 = #0#1#isSet = true in #0#1 = #0#0.$1{core::int?}; - #t1 = "${f1}"; - break #L1; - } - } - { - final hoisted core::double? f2; - if(#0#4#isSet ?{core::bool} #0#4{core::bool} : let final core::bool #t3 = #0#4#isSet = true in #0#4 = (#0#1#isSet ?{core::int?} #0#1{core::int?} : let final core::bool #t4 = #0#1#isSet = true in #0#1 = #0#0.$1{core::int?}) == null) { - f2 = #0#2#isSet ?{core::double?} #0#2{core::double?} : let final core::bool #t5 = #0#2#isSet = true in #0#2 = #0#0.$2{core::double?}; - #t1 = "${f2}"; - break #L1; - } - } - { - if((#0#4#isSet ?{core::bool} #0#4{core::bool} : let final core::bool #t6 = #0#4#isSet = true in #0#4 = (#0#1#isSet ?{core::int?} #0#1{core::int?} : let final core::bool #t7 = #0#1#isSet = true in #0#1 = #0#0.$1{core::int?}) == null) && (#0#2#isSet ?{core::double?} #0#2{core::double?} : let final core::bool #t8 = #0#2#isSet = true in #0#2 = #0#0.$2{core::double?}) == null) { - #t1 = "?"; - break #L1; - } - } - throw{for-error-handling} new _in::ReachabilityError::•("`null` encountered as case in a switch expression with a non-nullable type."); - } - } =>#t1; - } - static method _#new#tearOff() → self::A - return new self::A::•(); -} -static method main() → void { - core::print(new self::A::•().{self::A::foo}(){() → core::String}); -} - -constants { - #C1 = "vm:never-inline" - #C2 = null - #C3 = core::pragma {name:#C1, options:#C2} -} - - -Constructor coverage from constants: -org-dartlang-testcase:///issue53804.dart: -- pragma._ (from org-dartlang-sdk:///lib/core/annotations.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/issue54115.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue54115.dart.weak.transformed.expect deleted file mode 100644 index d9f7814..0000000 --- a/pkg/front_end/testcases/dart2js/issue54115.dart.weak.transformed.expect +++ /dev/null
@@ -1,54 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class C extends core::Object { - final field core::int? _x; - constructor •(core::int? _x) → self::C - : self::C::_x = _x, super core::Object::•() - ; - static method _#new#tearOff(core::int? _x) → self::C - return new self::C::•(_x); - @#C3 - method manual() → void { - core::int? x = this.{self::C::_x}{core::int?}; - if(!(x == null)) - core::print(x{core::int}); - else - core::print("null"); - } - @#C3 - method pattern() → void { - { - final synthesized core::int? #0#0 = this.{self::C::_x}{core::int?}; - { - hoisted core::int x; - if(!(#0#0 == null)) { - x = #0#0{core::int}; - core::print(x); - } - else - core::print("null"); - } - } - } - @#C3 - method promote() → void { - if(!(this.{self::C::_x}{core::int?} == null)) - core::print(this.{self::C::_x}{core::int?} as{Unchecked} core::int); - else - core::print("null"); - } -} - -constants { - #C1 = "dart2js:never-inline" - #C2 = null - #C3 = core::pragma {name:#C1, options:#C2} -} - - -Constructor coverage from constants: -org-dartlang-testcase:///issue54115.dart: -- pragma._ (from org-dartlang-sdk:///lib/core/annotations.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/issue55135.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue55135.dart.weak.transformed.expect deleted file mode 100644 index bf9f2bf..0000000 --- a/pkg/front_end/testcases/dart2js/issue55135.dart.weak.transformed.expect +++ /dev/null
@@ -1,47 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class B extends core::Object implements self::A { - final field core::int x = 1; - synthetic constructor •() → self::B - : super core::Object::•() - ; - static method _#new#tearOff() → self::B - return new self::B::•(); -} -abstract class A extends core::Object { - abstract get x() → core::int; - static factory •() → self::A /* redirection-target: self::B::• */ - return new self::B::•(); - static method _#new#tearOff() → self::A - return new self::B::•(); -} -extension type C(self::A point) implements self::A { - abstract extension-type-member representation-field get point() → self::A; - constructor _ = self::C|constructor#_; - constructor tearoff _ = self::C|constructor#_#_#tearOff; - constructor • = self::C|constructor#; - constructor tearoff • = self::C|constructor#_#new#tearOff; -} -static extension-type-member method C|constructor#_(self::A point) → self::C /* erasure=self::A */ { - lowered final self::C /* erasure=self::A */ #this = point; - return #this; -} -static extension-type-member method C|constructor#_#_#tearOff(self::A point) → self::C /* erasure=self::A */ - return self::C|constructor#_(point); -static extension-type-member method C|constructor#() → self::C /* erasure=self::A */ { - lowered final self::C /* erasure=self::A */ #this = new self::B::•(); - return #this; -} -static extension-type-member method C|constructor#_#new#tearOff() → self::C /* erasure=self::A */ - return self::C|constructor#(); -static method main() → void { - self::expectEquals(new self::B::•().{self::A::x}{core::int}, 1); - self::expectEquals(self::C|constructor#().{self::A::x}{core::int}, 1); -} -static method expectEquals(dynamic x, dynamic y) → dynamic { - if(!(x =={core::Object::==}{(core::Object) → core::bool} y)) { - throw "Expected equal values, got '${x}' and '${y}'."; - } -}
diff --git a/pkg/front_end/testcases/dart2js/issue56803.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue56803.dart.weak.transformed.expect deleted file mode 100644 index 9b8c26f..0000000 --- a/pkg/front_end/testcases/dart2js/issue56803.dart.weak.transformed.expect +++ /dev/null
@@ -1,45 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -extension type Ext(core::String _) implements core::String { - abstract extension-type-member representation-field get _() → core::String; - constructor _ = self::Ext|constructor#_; - constructor tearoff _ = self::Ext|constructor#_#_#tearOff; - constructor • = self::Ext|constructor#; - constructor tearoff • = self::Ext|constructor#_#new#tearOff; -} -static const field core::String? maybe = #C5; -static extension-type-member method Ext|constructor#_(core::String _) → self::Ext /* erasure=core::String */ { - lowered final self::Ext /* erasure=core::String */ #this = _; - return #this; -} -static extension-type-member method Ext|constructor#_#_#tearOff(core::String _) → self::Ext /* erasure=core::String */ - return self::Ext|constructor#_(_); -static extension-type-member method Ext|constructor#() → self::Ext /* erasure=core::String */ { - lowered final self::Ext /* erasure=core::String */ #this = "OK"; - assert(!(#C5 == null), "Must not be null"); - return #this; -} -static extension-type-member method Ext|constructor#_#new#tearOff() → self::Ext /* erasure=core::String */ - return self::Ext|constructor#(); -static method main() → void { - self::Ext /* erasure=core::String */ c = #C6; - core::print(c); -} - -constants { - #C1 = "not there" - #C2 = eval /* from org-dartlang-testcase:///issue56803.dart */ const core::bool::fromEnvironment(#C1) - #C3 = "string" - #C4 = null - #C5 = eval /* from org-dartlang-testcase:///issue56803.dart */ #C2 ?{core::String?} #C3 : #C4 - #C6 = eval /* from org-dartlang-testcase:///issue56803.dart */ const self::Ext|constructor#() -} - -Extra constant evaluation status: -Evaluated with empty environment: Not @ org-dartlang-testcase:///issue56803.dart:8:22 -> BoolConstant(false) -Evaluated with empty environment: EqualsNull @ org-dartlang-testcase:///issue56803.dart:8:22 -> BoolConstant(true) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///issue56803.dart:8:16 -> NullConstant(null) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///issue56803.dart:5:57 -> NullConstant(null) -Extra constant evaluation: evaluated: 13, effectively constant: 4
diff --git a/pkg/front_end/testcases/dart2js/issue56803b.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/issue56803b.dart.weak.transformed.expect deleted file mode 100644 index 9210ccf..0000000 --- a/pkg/front_end/testcases/dart2js/issue56803b.dart.weak.transformed.expect +++ /dev/null
@@ -1,43 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class Ext extends core::Object /*hasConstConstructor*/ { - final field core::String _; - const constructor •() → self::Ext - : assert(!(#C5 == null), "Must not be null"), self::Ext::_ = "OK", super core::Object::•() - ; - static method _#new#tearOff() → self::Ext - return new self::Ext::•(); -} -static const field core::String? maybe = #C5; -static method main() → void { - self::Ext c = #C10; - core::print(c); -} - -constants { - #C1 = "not there" - #C2 = eval /* from org-dartlang-testcase:///issue56803b.dart */ const core::bool::fromEnvironment(#C1) - #C3 = "string" - #C4 = null - #C5 = eval /* from org-dartlang-testcase:///issue56803b.dart */ #C2 ?{core::String?} #C3 : #C4 - #C6 = "OK" - #C7 = eval /* from org-dartlang-testcase:///issue56803b.dart */ #C5 == null - #C8 = eval /* from org-dartlang-testcase:///issue56803b.dart */!#C7 - #C9 = "Must not be null" - #C10 = eval /* from org-dartlang-testcase:///issue56803b.dart */ self::Ext{_:#C6, assert(#C8, #C9)} -} - -Extra constant evaluation status: -Evaluated with empty environment: Not @ org-dartlang-testcase:///issue56803b.dart:11:22 -> BoolConstant(false) -Evaluated with empty environment: EqualsNull @ org-dartlang-testcase:///issue56803b.dart:11:22 -> BoolConstant(true) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///issue56803b.dart:11:16 -> NullConstant(null) -Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///issue56803b.dart:5:57 -> NullConstant(null) -Extra constant evaluation: evaluated: 8, effectively constant: 4 - - -Constructor coverage from constants: -org-dartlang-testcase:///issue56803b.dart: -- Ext. (from org-dartlang-testcase:///issue56803b.dart:10:9) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/js_interop_transforms/functiontojs.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/js_interop_transforms/functiontojs.dart.weak.transformed.expect deleted file mode 100644 index fadb6a5..0000000 --- a/pkg/front_end/testcases/dart2js/js_interop_transforms/functiontojs.dart.weak.transformed.expect +++ /dev/null
@@ -1,27 +0,0 @@ -library; -import self as self; -import "dart:js_util" as js_; -import "dart:core" as core; - -import "dart:js_interop"; - -static method main() → void { - #lib1::JSExportedDartFunction /* erasure=_interceptors::JavaScriptFunction */ jsFunction = js_::_functionToJS0(() → Null {}); - js_::_functionToJS1((core::int arg1) → core::int => arg1); - js_::_functionToJS0((([core::int? arg1 = #C1]) → core::int? => arg1) as () → void); - js_::_functionToJS2((core::int arg1, core::String arg2) → core::String => arg2); - js_::_functionToJS1((([core::int? arg1 = #C1, core::String? arg2 = #C1]) → core::String? => arg2) as ([core::int]) → void); - js_::_functionToJS3((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3) → #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ => arg3); - js_::_functionToJS2(((core::int arg1, [core::String? arg2 = #C1, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSArray<core::Object?>? */ arg3 = #C1]) → #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSArray<core::Object?>? */ => arg3) as (core::int, [core::String]) → void); - js_::_functionToJS4((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3, #lib1::JSObject /* erasure=_interceptors::JSObject */ arg4) → #lib1::JSObject /* erasure=_interceptors::JSObject */ => arg4); - js_::_functionToJS3(((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3, [#lib1::JSObject? /* erasure=_interceptors::JSObject? */ arg4 = #C1]) → #lib1::JSObject? /* erasure=_interceptors::JSObject? */ => arg4) as (core::int, core::String, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */) → void); - js_::_functionToJS5((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3, #lib1::JSObject /* erasure=_interceptors::JSObject */ arg4, #lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSObject */ arg5) → #lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSObject */ => arg5); - js_::_functionToJS4(((core::int arg1, core::String arg2, [#lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSArray<core::Object?>? */ arg3 = #C1, #lib1::JSObject? /* erasure=_interceptors::JSObject? */ arg4 = #C1, #lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSObject? */ arg5 = #C1]) → #lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSObject? */ => arg5) as (core::int, core::String, [#lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSArray<core::Object?>? */, #lib1::JSObject? /* erasure=_interceptors::JSObject? */]) → void); - js_::_functionToJSN((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3, #lib1::JSObject /* erasure=_interceptors::JSObject */ arg4, #lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSObject */ arg5, #lib1::JSAny /* erasure=core::Object */ arg6) → #lib1::JSAny /* erasure=core::Object */ => arg6, 6); - js_::_functionToJS5(((core::int arg1, core::String arg2, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */ arg3, #lib1::JSObject /* erasure=_interceptors::JSObject */ arg4, [#lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSObject? */ arg5 = #C1, #lib1::JSAny? /* erasure=core::Object? */ arg6 = #C1]) → #lib1::JSAny? /* erasure=core::Object? */ => arg6) as (core::int, core::String, #lib1::JSArray<#lib1::JSAny? /* erasure=core::Object? */> /* erasure=_interceptors::JSArray<core::Object?> */, #lib1::JSObject /* erasure=_interceptors::JSObject */, [#lib1::JSPromise<#lib1::JSAny? /* erasure=core::Object? */>? /* erasure=_interceptors::JSObject? */]) → void); - js_::_jsFunctionToDart(jsFunction); -} - -constants { - #C1 = null -}
diff --git a/pkg/front_end/testcases/dart2js/js_interop_transforms/isa.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/js_interop_transforms/isa.dart.weak.transformed.expect deleted file mode 100644 index 3b2b502..0000000 --- a/pkg/front_end/testcases/dart2js/js_interop_transforms/isa.dart.weak.transformed.expect +++ /dev/null
@@ -1,88 +0,0 @@ -@#C2 -library; -import self as self; -import "dart:js_interop" as js_; -import "dart:js_interop_unsafe" as js_2; - -import "dart:js_interop"; - -extension type CustomJSAny(js_::JSAny /* erasure=dart.core::Object */ _) implements js_::JSAny /* erasure=dart.core::Object */ { - abstract extension-type-member representation-field get _() → js_::JSAny /* erasure=dart.core::Object */; - constructor • = self::CustomJSAny|constructor#; - constructor tearoff • = self::CustomJSAny|constructor#_#new#tearOff; -} -extension type CustomJSObject(js_::JSObject /* erasure=_interceptors::JSObject */ _) implements js_::JSObject /* erasure=_interceptors::JSObject */ { - abstract extension-type-member representation-field get _() → js_::JSObject /* erasure=_interceptors::JSObject */; - constructor • = self::CustomJSObject|constructor#; - constructor tearoff • = self::CustomJSObject|constructor#_#new#tearOff; -} -extension type CustomTypedArray(js_::JSTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ _) implements js_::JSObject /* erasure=_interceptors::JSObject */ { - abstract extension-type-member representation-field get _() → js_::JSTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */; - constructor • = self::CustomTypedArray|constructor#; - constructor tearoff • = self::CustomTypedArray|constructor#_#new#tearOff; -} -@#C4 -extension type CustomJSArray(js_::JSArray<js_::JSAny? /* erasure=dart.core::Object? */> /* erasure=_interceptors::JSArray<dart.core::Object?> */ _) implements js_::JSObject /* erasure=_interceptors::JSObject */ { - abstract extension-type-member representation-field get _() → js_::JSArray<js_::JSAny? /* erasure=dart.core::Object? */> /* erasure=_interceptors::JSArray<dart.core::Object?> */; - constructor • = self::CustomJSArray|constructor#; - constructor tearoff • = self::CustomJSArray|constructor#_#new#tearOff; -} -static extension-type-member method CustomJSAny|constructor#(js_::JSAny /* erasure=dart.core::Object */ _) → self::CustomJSAny /* erasure=dart.core::Object */ { - lowered final self::CustomJSAny /* erasure=dart.core::Object */ #this = _; - return #this; -} -static extension-type-member method CustomJSAny|constructor#_#new#tearOff(js_::JSAny /* erasure=dart.core::Object */ _) → self::CustomJSAny /* erasure=dart.core::Object */ - return self::CustomJSAny|constructor#(_); -static extension-type-member method CustomJSObject|constructor#(js_::JSObject /* erasure=_interceptors::JSObject */ _) → self::CustomJSObject /* erasure=_interceptors::JSObject */ { - lowered final self::CustomJSObject /* erasure=_interceptors::JSObject */ #this = _; - return #this; -} -static extension-type-member method CustomJSObject|constructor#_#new#tearOff(js_::JSObject /* erasure=_interceptors::JSObject */ _) → self::CustomJSObject /* erasure=_interceptors::JSObject */ - return self::CustomJSObject|constructor#(_); -static extension-type-member method CustomTypedArray|constructor#(js_::JSTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ _) → self::CustomTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ { - lowered final self::CustomTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ #this = _; - return #this; -} -static extension-type-member method CustomTypedArray|constructor#_#new#tearOff(js_::JSTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ _) → self::CustomTypedArray /* erasure=dart.typed_data.implementation::NativeTypedData */ - return self::CustomTypedArray|constructor#(_); -static extension-type-member method CustomJSArray|constructor#(js_::JSArray<js_::JSAny? /* erasure=dart.core::Object? */> /* erasure=_interceptors::JSArray<dart.core::Object?> */ _) → self::CustomJSArray /* erasure=_interceptors::JSArray<dart.core::Object?> */ { - lowered final self::CustomJSArray /* erasure=_interceptors::JSArray<dart.core::Object?> */ #this = _; - return #this; -} -static extension-type-member method CustomJSArray|constructor#_#new#tearOff(js_::JSArray<js_::JSAny? /* erasure=dart.core::Object? */> /* erasure=_interceptors::JSArray<dart.core::Object?> */ _) → self::CustomJSArray /* erasure=_interceptors::JSArray<dart.core::Object?> */ - return self::CustomJSArray|constructor#(_); -static method test(js_::JSAny /* erasure=dart.core::Object */ any) → void { - !(any == null); - true; - !(any == null) && js_::JSAnyUtilityExtension|typeofEquals(any, "string"); - any == null || js_::JSAnyUtilityExtension|typeofEquals(any, "string"); - !(any == null) && js_::JSAnyUtilityExtension|typeofEquals(any, "number"); - !(any == null) && js_::JSAnyUtilityExtension|typeofEquals(any, "boolean"); - !(any == null) && js_::JSAnyUtilityExtension|typeofEquals(any, "symbol"); - !(any == null) && js_::JSAnyUtilityExtension|typeofEquals(any, "bigint"); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "Object"); - any == null || js_::JSAnyUtilityExtension|instanceOfString(any, "Object"); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "Array"); - !(any == null) && js_::JSAnyUtilityExtension|instanceof(any, js_2::JSObjectUnsafeUtilExtension|callMethodVarArgs<js_::JSFunction /* erasure=_interceptors::JavaScriptFunction */>(js_2::JSObjectUnsafeUtilExtension|[](js_::globalContext, "Object") as js_::JSObject /* erasure=_interceptors::JSObject */, js_::StringToJSString|get#toJS("getPrototypeOf"), <js_::JSAny? /* erasure=dart.core::Object? */>[js_2::JSObjectUnsafeUtilExtension|[](js_::globalContext, "Int8Array") as js_::JSObject /* erasure=_interceptors::JSObject */])); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "library1.CustomJSAny"); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "library1.CustomJSObject"); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "library1.CustomTypedArray"); - !(any == null) && js_::JSAnyUtilityExtension|instanceOfString(any, "library1.RenamedJSArray"); - let final js_::JSAny? /* erasure=dart.core::Object? */ #t1 = (() → js_::JSAny /* erasure=dart.core::Object */ { - return any; - })(){() → js_::JSAny /* erasure=dart.core::Object */} in !(#t1 == null); -} -static method main() → void {} - -constants { - #C1 = "library1" - #C2 = js_::JS {name:#C1} - #C3 = "RenamedJSArray" - #C4 = js_::JS {name:#C3} -} - - -Constructor coverage from constants: -org-dartlang-testcase:///isa.dart: -- JS. (from org-dartlang-sdk:///lib/js_interop/js_interop.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/late_fields.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/late_fields.dart.weak.transformed.expect deleted file mode 100644 index 4f11c0f..0000000 --- a/pkg/front_end/testcases/dart2js/late_fields.dart.weak.transformed.expect +++ /dev/null
@@ -1,75 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_late_helper" as _la; -import "dart:_internal" as _in; - -class C extends core::Object { - field core::int _#C#a#A = _in::createSentinel<core::int>(); - field core::int _#C#b#F = _in::createSentinel<core::int>(); - field core::int _#C#c#AI = _in::createSentinel<core::int>(); - field core::int _#C#d#FI = _in::createSentinel<core::int>(); - synthetic constructor •() → self::C - : super core::Object::•() - ; - static method _#new#tearOff() → self::C - return new self::C::•(); - get a() → core::int - return _la::_lateReadCheck<core::int>(this.{self::C::_#C#a#A}{core::int}, "a"); - set a(synthesized core::int value) → void - this.{self::C::_#C#a#A} = value; - get b() → core::int - return _la::_lateReadCheck<core::int>(this.{self::C::_#C#b#F}{core::int}, "b"); - set b(synthesized core::int value) → void { - _la::_lateWriteOnceCheck(this.{self::C::_#C#b#F}{core::int}, "b"); - this.{self::C::_#C#b#F} = value; - } - get c() → core::int { - synthesized core::int value = this.{self::C::_#C#c#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{self::C::_#C#c#AI} = 1.{core::int::unary-}(){() → core::int}; - return value; - } - set c(synthesized core::int value) → void - this.{self::C::_#C#c#AI} = value; - get d() → core::int { - synthesized core::int value = this.{self::C::_#C#d#FI}{core::int}; - if(_in::isSentinel(value)) { - final synthesized core::int result = 1.{core::int::unary-}(){() → core::int}; - _la::_lateInitializeOnceCheck(this.{self::C::_#C#d#FI}{core::int}, "d"); - value = this.{self::C::_#C#d#FI} = result; - } - return value; - } -} -static field self::C c = new self::C::•(); -static method main() → void { - self::testUninitializedNonFinalInstanceField(); - self::testUninitializedFinalInstanceField(); - self::testInitializedNonFinalInstanceField(); - self::testInitializedFinalInstanceField(); -} -static method testUninitializedNonFinalInstanceField() → void { - core::print(self::c.{self::C::a}{core::int}); - self::c.{self::C::a} = 42; - core::print(self::c.{self::C::a}{core::int}); -} -static method testUninitializedFinalInstanceField() → void { - core::print(self::c.{self::C::b}{core::int}); - self::c.{self::C::b} = 42; - core::print(self::c.{self::C::b}{core::int}); -} -static method testInitializedNonFinalInstanceField() → void { - core::print(self::c.{self::C::c}{core::int}); - self::c.{self::C::c} = 42; - core::print(self::c.{self::C::c}{core::int}); -} -static method testInitializedFinalInstanceField() → void { - core::print(self::c.{self::C::d}{core::int}); -} - - -Extra constant evaluation status: -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_fields.dart:15:16 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_fields.dart:16:22 -> DoubleConstant(-1.0) -Extra constant evaluation: evaluated: 77, effectively constant: 2
diff --git a/pkg/front_end/testcases/dart2js/late_fields_with_annotation.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/late_fields_with_annotation.dart.weak.transformed.expect deleted file mode 100644 index 26f11ae..0000000 --- a/pkg/front_end/testcases/dart2js/late_fields_with_annotation.dart.weak.transformed.expect +++ /dev/null
@@ -1,102 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_late_helper" as _la; -import "dart:_internal" as _in; - -class C extends core::Object { - field core::int _#C#a#A = _in::createSentinel<core::int>(); - field core::int _#C#b#F = _in::createSentinel<core::int>(); - field core::int _#C#c#AI = _in::createSentinel<core::int>(); - field core::int _#C#d#FI = _in::createSentinel<core::int>(); - synthetic constructor •() → self::C - : super core::Object::•() - ; - static method _#new#tearOff() → self::C - return new self::C::•(); - @#C3 - get a() → core::int - return _la::_lateReadCheck<core::int>(this.{self::C::_#C#a#A}{core::int}, "a"); - @#C3 - set a(synthesized core::int value) → void - this.{self::C::_#C#a#A} = value; - @#C5 - get b() → core::int - return _la::_lateReadCheck<core::int>(this.{self::C::_#C#b#F}{core::int}, "b"); - @#C5 - set b(synthesized core::int value) → void { - _la::_lateWriteOnceCheck(this.{self::C::_#C#b#F}{core::int}, "b"); - this.{self::C::_#C#b#F} = value; - } - @#C3 - @#C7 - get c() → core::int { - synthesized core::int value = this.{self::C::_#C#c#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{self::C::_#C#c#AI} = 1.{core::int::unary-}(){() → core::int}; - return value; - } - @#C3 - @#C7 - set c(synthesized core::int value) → void - this.{self::C::_#C#c#AI} = value; - @#C5 - @#C9 - get d() → core::int { - synthesized core::int value = this.{self::C::_#C#d#FI}{core::int}; - if(_in::isSentinel(value)) { - final synthesized core::int result = 1.{core::int::unary-}(){() → core::int}; - _la::_lateInitializeOnceCheck(this.{self::C::_#C#d#FI}{core::int}, "d"); - value = this.{self::C::_#C#d#FI} = result; - } - return value; - } -} -static field self::C c = new self::C::•(); -static method main() → void { - self::testUninitializedNonFinalInstanceField(); - self::testUninitializedFinalInstanceField(); - self::testInitializedNonFinalInstanceField(); - self::testInitializedFinalInstanceField(); -} -static method testUninitializedNonFinalInstanceField() → void { - core::print(self::c.{self::C::a}{core::int}); - self::c.{self::C::a} = 42; - core::print(self::c.{self::C::a}{core::int}); -} -static method testUninitializedFinalInstanceField() → void { - core::print(self::c.{self::C::b}{core::int}); - self::c.{self::C::b} = 42; - core::print(self::c.{self::C::b}{core::int}); -} -static method testInitializedNonFinalInstanceField() → void { - core::print(self::c.{self::C::c}{core::int}); - self::c.{self::C::c} = 42; - core::print(self::c.{self::C::c}{core::int}); -} -static method testInitializedFinalInstanceField() → void { - core::print(self::c.{self::C::d}{core::int}); -} - -constants { - #C1 = "dart2js:late:trust" - #C2 = null - #C3 = core::pragma {name:#C1, options:#C2} - #C4 = "dart2js:late:check" - #C5 = core::pragma {name:#C4, options:#C2} - #C6 = "dart2js:tryInline" - #C7 = core::pragma {name:#C6, options:#C2} - #C8 = "dart2js:noInline" - #C9 = core::pragma {name:#C8, options:#C2} -} - -Extra constant evaluation status: -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_fields_with_annotation.dart:21:16 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_fields_with_annotation.dart:25:22 -> DoubleConstant(-1.0) -Extra constant evaluation: evaluated: 77, effectively constant: 2 - - -Constructor coverage from constants: -org-dartlang-testcase:///late_fields_with_annotation.dart: -- pragma._ (from org-dartlang-sdk:///lib/core/annotations.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart)
diff --git a/pkg/front_end/testcases/dart2js/late_from_dill/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/late_from_dill/main.dart.weak.transformed.expect deleted file mode 100644 index 97d58cd..0000000 --- a/pkg/front_end/testcases/dart2js/late_from_dill/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,228 +0,0 @@ -library; -import self as self; -import "main_lib1.dart" as mai; -import "dart:core" as core; -import "main_lib2.dart" as mai2; - -import "org-dartlang-testcase:///main_lib1.dart"; -import "org-dartlang-testcase:///main_lib2.dart" as lib; - -static field mai::C c = new mai::C::•(); -static method main() → void { - self::testUninitializedNonFinalInstanceField(); - self::testUninitializedFinalInstanceField(); - self::testInitializedNonFinalInstanceField(); - self::testInitializedFinalInstanceField(); - mai::testNullableUninitializedNonFinalLocal(); - mai::testNonNullableUninitializedNonFinalLocal(); - mai::testNullableUninitializedFinalLocal(); - mai::testNonNullableUninitializedFinalLocal(); - mai::testNullableInitializedNonFinalLocal(); - mai::testNonNullableInitializedNonFinalLocal(); - mai::testNullableInitializedFinalLocal(); - mai::testNonNullableInitializedFinalLocal(); - self::testUninitializedNonFinalStaticField(); - self::testUninitializedFinalStaticField(); - self::testInitializedNonFinalStaticField(); - self::testInitializedFinalStaticField(); - self::testUninitializedNonFinalTopLevelField(); - self::testUninitializedFinalTopLevelField(); - self::testInitializedNonFinalTopLevelField(); - self::testInitializedFinalTopLevelField(); -} -static method testUninitializedNonFinalInstanceField() → void { - core::print(self::c.{mai::C::a}{core::int}); - self::c.{mai::C::a} = 42; - core::print(self::c.{mai::C::a}{core::int}); -} -static method testUninitializedFinalInstanceField() → void { - core::print(self::c.{mai::C::b}{core::int}); - self::c.{mai::C::b} = 42; - core::print(self::c.{mai::C::b}{core::int}); -} -static method testInitializedNonFinalInstanceField() → void { - core::print(self::c.{mai::C::c}{core::int}); - self::c.{mai::C::c} = 42; - core::print(self::c.{mai::C::c}{core::int}); -} -static method testInitializedFinalInstanceField() → void { - core::print(self::c.{mai::C::d}{core::int}); -} -static method testUninitializedNonFinalStaticField() → void { - core::print(mai::Statics::a); - mai::Statics::a = 42; - core::print(mai::Statics::a); -} -static method testUninitializedFinalStaticField() → void { - core::print(mai::Statics::b); - mai::Statics::b = 42; - core::print(mai::Statics::b); -} -static method testInitializedNonFinalStaticField() → void { - core::print(mai::Statics::c); - mai::Statics::c = 42; - core::print(mai::Statics::c); -} -static method testInitializedFinalStaticField() → void { - core::print(mai::Statics::d); -} -static method testUninitializedNonFinalTopLevelField() → void { - core::print(mai2::a); - mai2::a = 42; - core::print(mai2::a); -} -static method testUninitializedFinalTopLevelField() → void { - core::print(mai2::b); - mai2::b = 42; - core::print(mai2::b); -} -static method testInitializedNonFinalTopLevelField() → void { - core::print(mai2::c); - mai2::c = 42; - core::print(mai2::c); -} -static method testInitializedFinalTopLevelField() → void { - core::print(mai2::d); -} - -library; -import self as mai; -import "dart:core" as core; -import "dart:_late_helper" as _la; -import "dart:_internal" as _in; - -class C extends core::Object { - field core::int _#C#a#A = _in::createSentinel<core::int>(); - field core::int _#C#b#F = _in::createSentinel<core::int>(); - field core::int _#C#c#AI = _in::createSentinel<core::int>(); - field core::int _#C#d#FI = _in::createSentinel<core::int>(); - synthetic constructor •() → mai::C - : super core::Object::•() - ; - static method _#new#tearOff() → mai::C - return new mai::C::•(); - get a() → core::int - return _la::_lateReadCheck<core::int>(this.{mai::C::_#C#a#A}{core::int}, "a"); - set a(synthesized core::int value) → void - this.{mai::C::_#C#a#A} = value; - get b() → core::int - return _la::_lateReadCheck<core::int>(this.{mai::C::_#C#b#F}{core::int}, "b"); - set b(synthesized core::int value) → void { - _la::_lateWriteOnceCheck(this.{mai::C::_#C#b#F}{core::int}, "b"); - this.{mai::C::_#C#b#F} = value; - } - get c() → core::int { - synthesized core::int value = this.{mai::C::_#C#c#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{mai::C::_#C#c#AI} = 1.{core::int::unary-}(){() → core::int}; - return value; - } - set c(synthesized core::int value) → void - this.{mai::C::_#C#c#AI} = value; - get d() → core::int { - synthesized core::int value = this.{mai::C::_#C#d#FI}{core::int}; - if(_in::isSentinel(value)) { - final synthesized core::int result = 1.{core::int::unary-}(){() → core::int}; - _la::_lateInitializeOnceCheck(this.{mai::C::_#C#d#FI}{core::int}, "d"); - value = this.{mai::C::_#C#d#FI} = result; - } - return value; - } -} -class Statics extends core::Object { - static final field _la::_Cell _#a = new _la::_Cell::named("a"); - static final field _la::_Cell _#b = new _la::_Cell::named("b"); - late static field core::int c = 1.{core::int::unary-}(){() → core::int}; - late static final field core::int d = 1.{core::int::unary-}(){() → core::int}; - synthetic constructor •() → mai::Statics - : super core::Object::•() - ; - static method _#new#tearOff() → mai::Statics - return new mai::Statics::•(); - static get a() → core::int - return mai::Statics::_#a.{_la::_Cell::readField}<core::int>(){() → core::int}; - static set a(synthesized core::int value) → void - return mai::Statics::_#a.{_la::_Cell::value} = value; - static get b() → core::int - return mai::Statics::_#b.{_la::_Cell::readField}<core::int>(){() → core::int}; - static set b(synthesized core::int value) → void - return mai::Statics::_#b.{_la::_Cell::finalFieldValue} = value; -} -static method testNullableUninitializedNonFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::value} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNonNullableUninitializedNonFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::value} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNullableUninitializedFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::finalLocalValue} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNonNullableUninitializedFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::finalLocalValue} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNullableInitializedNonFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int? => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - x.{_la::_InitializedCell::value} = 42; - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - final synthesized _la::_InitializedCell y = new _la::_InitializedCell::named("y", () → core::int? => null); - core::print(y.{_la::_InitializedCell::read}<core::int?>(){() → core::int?}); - y.{_la::_InitializedCell::value} = 42; - core::print(y.{_la::_InitializedCell::read}<core::int>(){() → core::int}); -} -static method testNonNullableInitializedNonFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - x.{_la::_InitializedCell::value} = 42; - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); -} -static method testNullableInitializedFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int? => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::readFinal}<core::int?>(){() → core::int?}); - final synthesized _la::_InitializedCell y = new _la::_InitializedCell::named("y", () → core::int? => null); - core::print(y.{_la::_InitializedCell::readFinal}<core::int?>(){() → core::int?}); -} -static method testNonNullableInitializedFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::readFinal}<core::int>(){() → core::int}); -} - -library; -import self as mai2; -import "dart:core" as core; -import "dart:_late_helper" as _la; - -static final field _la::_Cell _#a = new _la::_Cell::named("a"); -static final field _la::_Cell _#b = new _la::_Cell::named("b"); -late static field core::int c = 1.{core::int::unary-}(){() → core::int}; -late static final field core::int d = 1.{core::int::unary-}(){() → core::int}; -static get a() → core::int - return mai2::_#a.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set a(synthesized core::int value) → void - return mai2::_#a.{_la::_Cell::value} = value; -static get b() → core::int - return mai2::_#b.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set b(synthesized core::int value) → void - return mai2::_#b.{_la::_Cell::finalFieldValue} = value; - - -Extra constant evaluation status: -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:8:16 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:9:22 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:15:23 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:16:29 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:44:17 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:56:16 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:63:23 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib1.dart:71:22 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib2.dart:7:14 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///main_lib2.dart:8:20 -> DoubleConstant(-1.0) -Extra constant evaluation: evaluated: 229, effectively constant: 10
diff --git a/pkg/front_end/testcases/dart2js/late_locals.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/late_locals.dart.weak.transformed.expect deleted file mode 100644 index 1a2b242..0000000 --- a/pkg/front_end/testcases/dart2js/late_locals.dart.weak.transformed.expect +++ /dev/null
@@ -1,69 +0,0 @@ -library; -import self as self; -import "dart:_late_helper" as _la; -import "dart:core" as core; - -static method main() → void { - self::testNullableUninitializedNonFinalLocal(); - self::testNonNullableUninitializedNonFinalLocal(); - self::testNullableUninitializedFinalLocal(); - self::testNonNullableUninitializedFinalLocal(); - self::testNullableInitializedNonFinalLocal(); - self::testNonNullableInitializedNonFinalLocal(); - self::testNullableInitializedFinalLocal(); - self::testNonNullableInitializedFinalLocal(); -} -static method testNullableUninitializedNonFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::value} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNonNullableUninitializedNonFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::value} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNullableUninitializedFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::finalLocalValue} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNonNullableUninitializedFinalLocal() → void { - final synthesized _la::_Cell x = new _la::_Cell::named("x"); - x.{_la::_Cell::finalLocalValue} = 42; - core::print(x.{_la::_Cell::readLocal}<core::int>(){() → core::int}); -} -static method testNullableInitializedNonFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int? => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - x.{_la::_InitializedCell::value} = 42; - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - final synthesized _la::_InitializedCell y = new _la::_InitializedCell::named("y", () → core::int? => null); - core::print(y.{_la::_InitializedCell::read}<core::int?>(){() → core::int?}); - y.{_la::_InitializedCell::value} = 42; - core::print(y.{_la::_InitializedCell::read}<core::int>(){() → core::int}); -} -static method testNonNullableInitializedNonFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); - x.{_la::_InitializedCell::value} = 42; - core::print(x.{_la::_InitializedCell::read}<core::int>(){() → core::int}); -} -static method testNullableInitializedFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int? => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::readFinal}<core::int?>(){() → core::int?}); - final synthesized _la::_InitializedCell y = new _la::_InitializedCell::named("y", () → core::int? => null); - core::print(y.{_la::_InitializedCell::readFinal}<core::int?>(){() → core::int?}); -} -static method testNonNullableInitializedFinalLocal() → void { - final synthesized _la::_InitializedCell x = new _la::_InitializedCell::named("x", () → core::int => 1.{core::int::unary-}(){() → core::int}); - core::print(x.{_la::_InitializedCell::readFinal}<core::int>(){() → core::int}); -} - - -Extra constant evaluation status: -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_locals.dart:41:17 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_locals.dart:53:16 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_locals.dart:60:23 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_locals.dart:68:22 -> DoubleConstant(-1.0) -Extra constant evaluation: evaluated: 81, effectively constant: 4
diff --git a/pkg/front_end/testcases/dart2js/late_statics.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/late_statics.dart.weak.transformed.expect deleted file mode 100644 index 14cd084..0000000 --- a/pkg/front_end/testcases/dart2js/late_statics.dart.weak.transformed.expect +++ /dev/null
@@ -1,107 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_late_helper" as _la; -import "late_statics_lib.dart" as lat; -additionalExports = (lat::a, - lat::a, - lat::b, - lat::b, - lat::c, - lat::c, - lat::d) - -import "org-dartlang-testcase:///late_statics_lib.dart" as lib; -export "org-dartlang-testcase:///late_statics_lib.dart"; - -class Statics extends core::Object { - static final field _la::_Cell _#a = new _la::_Cell::named("a"); - static final field _la::_Cell _#b = new _la::_Cell::named("b"); - late static field core::int c = 1.{core::int::unary-}(){() → core::int}; - late static final field core::int d = 1.{core::int::unary-}(){() → core::int}; - synthetic constructor •() → self::Statics - : super core::Object::•() - ; - static method _#new#tearOff() → self::Statics - return new self::Statics::•(); - static get a() → core::int - return self::Statics::_#a.{_la::_Cell::readField}<core::int>(){() → core::int}; - static set a(synthesized core::int value) → void - return self::Statics::_#a.{_la::_Cell::value} = value; - static get b() → core::int - return self::Statics::_#b.{_la::_Cell::readField}<core::int>(){() → core::int}; - static set b(synthesized core::int value) → void - return self::Statics::_#b.{_la::_Cell::finalFieldValue} = value; -} -static method main() → void { - self::testUninitializedNonFinalStaticField(); - self::testUninitializedFinalStaticField(); - self::testInitializedNonFinalStaticField(); - self::testInitializedFinalStaticField(); - self::testUninitializedNonFinalTopLevelField(); - self::testUninitializedFinalTopLevelField(); - self::testInitializedNonFinalTopLevelField(); - self::testInitializedFinalTopLevelField(); -} -static method testUninitializedNonFinalStaticField() → void { - core::print(self::Statics::a); - self::Statics::a = 42; - core::print(self::Statics::a); -} -static method testUninitializedFinalStaticField() → void { - core::print(self::Statics::b); - self::Statics::b = 42; - core::print(self::Statics::b); -} -static method testInitializedNonFinalStaticField() → void { - core::print(self::Statics::c); - self::Statics::c = 42; - core::print(self::Statics::c); -} -static method testInitializedFinalStaticField() → void { - core::print(self::Statics::d); -} -static method testUninitializedNonFinalTopLevelField() → void { - core::print(lat::a); - lat::a = 42; - core::print(lat::a); -} -static method testUninitializedFinalTopLevelField() → void { - core::print(lat::b); - lat::b = 42; - core::print(lat::b); -} -static method testInitializedNonFinalTopLevelField() → void { - core::print(lat::c); - lat::c = 42; - core::print(lat::c); -} -static method testInitializedFinalTopLevelField() → void { - core::print(lat::d); -} - -library; -import self as lat; -import "dart:core" as core; -import "dart:_late_helper" as _la; - -static final field _la::_Cell _#a = new _la::_Cell::named("a"); -static final field _la::_Cell _#b = new _la::_Cell::named("b"); -late static field core::int c = 1.{core::int::unary-}(){() → core::int}; -late static final field core::int d = 1.{core::int::unary-}(){() → core::int}; -static get a() → core::int - return lat::_#a.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set a(synthesized core::int value) → void - return lat::_#a.{_la::_Cell::value} = value; -static get b() → core::int - return lat::_#b.{_la::_Cell::readField}<core::int>(){() → core::int}; -static set b(synthesized core::int value) → void - return lat::_#b.{_la::_Cell::finalFieldValue} = value; - - -Extra constant evaluation status: -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_statics.dart:22:23 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_statics.dart:23:29 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_statics_lib.dart:7:14 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///late_statics_lib.dart:8:20 -> DoubleConstant(-1.0) -Extra constant evaluation: evaluated: 71, effectively constant: 4
diff --git a/pkg/front_end/testcases/dart2js/list_generate.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/list_generate.dart.weak.transformed.expect deleted file mode 100644 index e941e8a0..0000000 --- a/pkg/front_end/testcases/dart2js/list_generate.dart.weak.transformed.expect +++ /dev/null
@@ -1,14 +0,0 @@ -library; -import self as self; -import "dart:_interceptors" as _in; -import "dart:core" as core; - -static method main() → dynamic { - block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i.{core::num::*}(2){(core::num) → core::int}){(core::int, core::int) → void}; - } - } =>_list; -}
diff --git a/pkg/front_end/testcases/dart2js/list_generate_1.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/list_generate_1.dart.weak.transformed.expect deleted file mode 100644 index fbdea3e..0000000 --- a/pkg/front_end/testcases/dart2js/list_generate_1.dart.weak.transformed.expect +++ /dev/null
@@ -1,32 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_interceptors" as _in; - -static field core::List<core::int> list1 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } -} =>_list; -static field core::List<core::int> list2 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } -} =>_list; -static field core::List<core::int> list3 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateFixed<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } -} =>_list; -static field core::List<core::int> list4 = core::List::generate<core::int>(10, (core::int i) → core::int => i, growable: self::someGrowable); -static field core::bool someGrowable = true; -static method main() → void { - self::someGrowable = !self::someGrowable; - core::print(<core::List<core::int>>[self::list1, self::list2, self::list3, self::list4]); -}
diff --git a/pkg/front_end/testcases/dart2js/list_generate_2.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/list_generate_2.dart.weak.transformed.expect deleted file mode 100644 index f74fe97..0000000 --- a/pkg/front_end/testcases/dart2js/list_generate_2.dart.weak.transformed.expect +++ /dev/null
@@ -1,21 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_interceptors" as _in; - -static method main() → void { - core::print( block { - final synthesized _in::JSArray<core::List<core::int>> _list = _in::JSArray::allocateGrowable<core::List<core::int>>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, block { - final synthesized core::int _length = i; - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(_length); - for (synthesized core::int i = 0; i.{core::num::<}(_length){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; - } - } =>_list){(core::int, core::List<core::int>) → void}; - } - } =>_list); -}
diff --git a/pkg/front_end/testcases/dart2js/list_generate_3.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/list_generate_3.dart.weak.transformed.expect deleted file mode 100644 index 7806f57..0000000 --- a/pkg/front_end/testcases/dart2js/list_generate_3.dart.weak.transformed.expect +++ /dev/null
@@ -1,55 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_interceptors" as _in; - -static field core::List<core::int> list1 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - { - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } - } -} =>_list; -static field core::List<core::int> list2 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - { - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } - } -} =>_list; -static field core::List<core::int> list3 = block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateFixed<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - { - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, i){(core::int, core::int) → void}; - } - } -} =>_list; -static field core::List<core::int> list4 = core::List::generate<core::int>(10, (core::int i) → core::int { - return i; -}, growable: self::someGrowable); -static field core::List<core::int> list5 = core::List::generate<core::int>(10, (core::int i) → core::int { - if(i.{core::int::isEven}{core::bool}) - return i.{core::num::+}(1){(core::num) → core::int}; - return i.{core::num::-}(1){(core::num) → core::int}; -}); -static field core::List<core::int> list6 = core::List::generate<core::int>(10, #C1); -static field core::List<core::int> list7 = core::List::generate<core::int>(10, self::bar); -static field core::bool someGrowable = true; -static method foo(core::int i) → core::int - return i; -static get bar() → (core::int) → core::int - return #C1; -static method main() → void { - self::someGrowable = !self::someGrowable; - core::print(<core::List<core::int>>[self::list1, self::list2, self::list3, self::list4, self::list5, self::list6, self::list7]); -} - -constants { - #C1 = static-tearoff self::foo -}
diff --git a/pkg/front_end/testcases/dart2js/list_generate_local_function_invocation.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/list_generate_local_function_invocation.dart.weak.transformed.expect deleted file mode 100644 index 58863b3..0000000 --- a/pkg/front_end/testcases/dart2js/list_generate_local_function_invocation.dart.weak.transformed.expect +++ /dev/null
@@ -1,16 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:_interceptors" as _in; - -static method main() → dynamic { - function localFunction(core::int i) → core::int - return i.{core::num::*}(2){(core::num) → core::int}; - block { - final synthesized _in::JSArray<core::int> _list = _in::JSArray::allocateGrowable<core::int>(10); - for (synthesized core::int i = 0; i.{core::num::<}(10){(core::num) → core::bool}; i = i.{core::num::+}(1){(core::int) → core::int}) { - synthesized core::int i = i; - _list.{_in::JSArray::[]=}{Invariant,BoundsSafe}(i, localFunction(i){(core::int) → core::int}){(core::int, core::int) → void}; - } - } =>_list; -}
diff --git a/pkg/front_end/testcases/dart2js/mixin_constructor.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/mixin_constructor.dart.weak.transformed.expect deleted file mode 100644 index dd87346..0000000 --- a/pkg/front_end/testcases/dart2js/mixin_constructor.dart.weak.transformed.expect +++ /dev/null
@@ -1,45 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/mixin_constructor.dart:8:3: Error: Mixins can't declare constructors. -// M.baz(); -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_constructor.dart:11:7: Error: Can't use 'M' as a mixin because it has constructors. -// class MA extends A with M {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_constructor.dart:8:3: Context: This constructor prevents using 'M' as a mixin. -// M.baz(); -// ^ -// -import self as self; -import "dart:core" as core; - -class A extends core::Object { - synthetic constructor •() → self::A - : super core::Object::•() - ; - static method _#new#tearOff() → self::A - return new self::A::•(); -} -abstract class M extends self::A /*isMixinDeclaration*/ { - constructor baz() → self::M - : super self::A::•() - ; -} -class MA extends self::_MA&A&M { - synthetic constructor •() → self::MA - : super self::_MA&A&M::•() - ; - static method _#new#tearOff() → self::MA - return new self::MA::•(); -} -abstract class _MA&A&M = self::A with self::M /*isAnonymousMixin*/ { - synthetic constructor •() → self::_MA&A&M - : super self::A::•() - ; -} -static method test() → dynamic { - new self::MA::•(); -}
diff --git a/pkg/front_end/testcases/dart2js/mixin_default_values/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/mixin_default_values/main.dart.weak.transformed.expect deleted file mode 100644 index 280d3e7..0000000 --- a/pkg/front_end/testcases/dart2js/mixin_default_values/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,91 +0,0 @@ -library; -import self as self; -import "b_lib.dart" as b_l; -import "a_lib.dart" as a_l; -import "dart:core" as core; - -import "org-dartlang-testcase:///b_lib.dart"; - -static method main() → dynamic { - b_l::B bInst = new b_l::B::•(); - self::expect(2.71, bInst.{a_l::A::d}{core::double}); - self::expect("default", bInst.{a_l::A::doStringy}("DEFAULT"){(core::String) → core::String}); -} -static method expect(dynamic expected, dynamic actual) → dynamic { - if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) - throw "Expected ${expected}, actual ${actual}."; -} - -library; -import self as b_l; -import "dart:core" as core; -import "a_lib.dart" as a_l; -import "m_lib.dart" as m_l; - -import "org-dartlang-testcase:///a_lib.dart"; -import "org-dartlang-testcase:///m_lib.dart"; - -class B extends b_l::_B&A&M { - constructor •({core::double d = #C1}) → b_l::B - : super b_l::_B&A&M::•(d: d) - ; - static method _#new#tearOff({core::double d = #C1}) → b_l::B - return new b_l::B::•(d: d); -} -abstract class _B&A&M = a_l::A with m_l::M /*isAnonymousMixin*/ { - synthetic constructor •({core::double d = #C2, (core::String) → core::String s = #C3}) → b_l::_B&A&M - : super a_l::A::•(d: d, s: s) - ; - synthetic constructor factoryConstructor({core::double d = #C2, (core::String) → core::String s = #C3}) → b_l::_B&A&M - : super a_l::A::factoryConstructor(d: d, s: s) - ; - mixin-super-stub method m1() → dynamic - return super.{m_l::M::m1}(); -} - -library; -import self as m_l; -import "a_lib.dart" as a_l; - -import "org-dartlang-testcase:///a_lib.dart"; - -abstract class M extends a_l::A /*isMixinDeclaration*/ { - method m1() → dynamic {} -} - -library; -import self as a_l; -import "dart:core" as core; - -import "org-dartlang-testcase:///t_lib.dart"; - -class A extends core::Object { - final field core::double d; - final field (core::String) → core::String _s; - constructor •({core::double d = #C2, (core::String) → core::String s = #C3}) → a_l::A - : this a_l::A::factoryConstructor(d: d, s: s) - ; - constructor factoryConstructor({core::double d = #C2, (core::String) → core::String s = #C3}) → a_l::A - : a_l::A::d = d, a_l::A::_s = s, super core::Object::•() - ; - static method _#new#tearOff({core::double d = #C2, (core::String) → core::String s = #C3}) → a_l::A - return new a_l::A::•(d: d, s: s); - static method _#factoryConstructor#tearOff({core::double d = #C2, (core::String) → core::String s = #C3}) → a_l::A - return new a_l::A::factoryConstructor(d: d, s: s); - method doStringy(core::String i) → core::String - return let final core::String #t1 = i in this.{a_l::A::_s}(#t1){(core::String) → core::String}; -} -static method _defaultStringy(core::String t) → core::String - return t.{core::String::toLowerCase}(){() → core::String}; - -library; -import self as self2; -import "dart:core" as core; - -typedef StringyFunction<contravariant T extends core::Object? = dynamic> = (T%) → core::String; - -constants { - #C1 = 2.71 - #C2 = 3.14 - #C3 = static-tearoff a_l::_defaultStringy -}
diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect deleted file mode 100644 index 995c7f9..0000000 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,509 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:43:36: Error: The class doesn't have a concrete implementation of the super-invoked member 'method1'. -// class Class2b extends Class2a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:17:11: Context: This is the super-access that doesn't have a concrete target. -// super.method1(); -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:43:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'property1'. -// class Class2b extends Class2a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:23:18: Context: This is the super-access that doesn't have a concrete target. -// return super.property1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:43:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'property1'. -// class Class2b extends Class2a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:27:11: Context: This is the super-access that doesn't have a concrete target. -// super.property1 = value; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:43:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'field1'. -// class Class2b extends Class2a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:9:33: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:43:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'field1'. -// class Class2b extends Class2a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:9:18: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:47:36: Error: The class doesn't have a concrete implementation of the super-invoked member 'method1'. -// class Class3b extends Class3a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:17:11: Context: This is the super-access that doesn't have a concrete target. -// super.method1(); -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:47:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'property1'. -// class Class3b extends Class3a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:23:18: Context: This is the super-access that doesn't have a concrete target. -// return super.property1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:47:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'property1'. -// class Class3b extends Class3a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:27:11: Context: This is the super-access that doesn't have a concrete target. -// super.property1 = value; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:47:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'field1'. -// class Class3b extends Class3a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:9:33: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:47:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'field1'. -// class Class3b extends Class3a with Mixin1 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:9:18: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:55:36: Error: The class doesn't have a concrete implementation of the super-invoked member 'method1'. -// class Class5b extends Class5a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:27:11: Context: This is the super-access that doesn't have a concrete target. -// super.method1(); -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:55:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'property1'. -// class Class5b extends Class5a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:33:18: Context: This is the super-access that doesn't have a concrete target. -// return super.property1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:55:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'property1'. -// class Class5b extends Class5a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:37:11: Context: This is the super-access that doesn't have a concrete target. -// super.property1 = value; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:55:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'field1'. -// class Class5b extends Class5a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:19:33: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:55:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'field1'. -// class Class5b extends Class5a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:19:18: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:59:36: Error: The class doesn't have a concrete implementation of the super-invoked member 'method1'. -// class Class6b extends Class6a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:27:11: Context: This is the super-access that doesn't have a concrete target. -// super.method1(); -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:59:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'property1'. -// class Class6b extends Class6a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:33:18: Context: This is the super-access that doesn't have a concrete target. -// return super.property1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:59:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'property1'. -// class Class6b extends Class6a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:37:11: Context: This is the super-access that doesn't have a concrete target. -// super.property1 = value; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:59:36: Error: The class doesn't have a concrete implementation of the super-accessed member 'field1'. -// class Class6b extends Class6a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:19:33: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -// pkg/front_end/testcases/dart2js/mixin_super/main.dart:59:36: Error: The class doesn't have a concrete implementation of the super-accessed setter 'field1'. -// class Class6b extends Class6a with Mixin2 /* Error */ {} -// ^ -// pkg/front_end/testcases/dart2js/mixin_super/main_lib.dart:19:18: Context: This is the super-access that doesn't have a concrete target. -// return super.field1 = super.field1 + 1; -// ^ -// -import self as self; -import "main_lib.dart" as mai; -import "dart:core" as core; -import "dart:_internal" as _in; - -import "org-dartlang-testcase:///main_lib.dart"; - -abstract class Mixin1 extends self::_Mixin1&Super1&Super2 /*isMixinDeclaration*/ { - field core::int _#Mixin1#field1#AI = _in::createSentinel<core::int>(); - field core::int _#Mixin1#field2#AI = _in::createSentinel<core::int>(); - method method1() → void { - super.{mai::Super1::method1}(); - } - method method2() → void {} - get property1() → core::int { - return super.{mai::Super1::property1}; - } - set property1(core::int value) → void { - super.{mai::Super1::property1} = value; - } - get property2() → core::int { - return 42; - } - set property2(core::int value) → void {} - get field1() → core::int { - synthesized core::int value = this.{self::Mixin1::_#Mixin1#field1#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{self::Mixin1::_#Mixin1#field1#AI} = (() → core::int { - return super.{mai::Super1::field1} = super.{mai::Super1::field1}.{core::num::+}(1){(core::num) → core::int}; - })(){() → core::int}; - return value; - } - set field1(synthesized core::int value) → void - this.{self::Mixin1::_#Mixin1#field1#AI} = value; - get field2() → core::int { - synthesized core::int value = this.{self::Mixin1::_#Mixin1#field2#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{self::Mixin1::_#Mixin1#field2#AI} = (() → core::int { - return 88; - })(){() → core::int}; - return value; - } - set field2(synthesized core::int value) → void - this.{self::Mixin1::_#Mixin1#field2#AI} = value; -} -abstract class Class1a extends mai::Super1 implements mai::Super2 { - synthetic constructor •() → self::Class1a - : super mai::Super1::•() - ; -} -class Class1b extends self::_Class1b&Class1a&Mixin1 { - synthetic constructor •() → self::Class1b - : super self::_Class1b&Class1a&Mixin1::•() - ; - static method _#new#tearOff() → self::Class1b - return new self::Class1b::•(); -} -abstract class Class2a extends mai::Super2 implements mai::Super1 { - synthetic constructor •() → self::Class2a - : super mai::Super2::•() - ; -} -class Class2b extends self::_Class2b&Class2a&Mixin1 { - synthetic constructor •() → self::Class2b - : super self::_Class2b&Class2a&Mixin1::•() - ; - static method _#new#tearOff() → self::Class2b - return new self::Class2b::•(); -} -abstract class Class3a extends core::Object implements mai::Super1, mai::Super2 { - synthetic constructor •() → self::Class3a - : super core::Object::•() - ; -} -class Class3b extends self::_Class3b&Class3a&Mixin1 { - synthetic constructor •() → self::Class3b - : super self::_Class3b&Class3a&Mixin1::•() - ; - static method _#new#tearOff() → self::Class3b - return new self::Class3b::•(); -} -abstract class Class4a extends mai::Super1 implements mai::Super2 { - synthetic constructor •() → self::Class4a - : super mai::Super1::•() - ; -} -class Class4b extends self::_Class4b&Class4a&Mixin2 { - synthetic constructor •() → self::Class4b - : super self::_Class4b&Class4a&Mixin2::•() - ; - static method _#new#tearOff() → self::Class4b - return new self::Class4b::•(); -} -abstract class Class5a extends mai::Super2 implements mai::Super1 { - synthetic constructor •() → self::Class5a - : super mai::Super2::•() - ; -} -class Class5b extends self::_Class5b&Class5a&Mixin2 { - synthetic constructor •() → self::Class5b - : super self::_Class5b&Class5a&Mixin2::•() - ; - static method _#new#tearOff() → self::Class5b - return new self::Class5b::•(); -} -abstract class Class6a extends core::Object implements mai::Super1, mai::Super2 { - synthetic constructor •() → self::Class6a - : super core::Object::•() - ; -} -class Class6b extends self::_Class6b&Class6a&Mixin2 { - synthetic constructor •() → self::Class6b - : super self::_Class6b&Class6a&Mixin2::•() - ; - static method _#new#tearOff() → self::Class6b - return new self::Class6b::•(); -} -abstract class _Mixin1&Super1&Super2 extends core::Object implements mai::Super1, mai::Super2 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Mixin1&Super1&Super2 - : super core::Object::•() - ; -} -abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class1b&Class1a&Mixin1 - : super self::Class1a::•() - ; - mixin-super-stub get field1() → core::int - return super.{self::Mixin1::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{self::Mixin1::field1} = value; - mixin-super-stub get field2() → core::int - return super.{self::Mixin1::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{self::Mixin1::field2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); - mixin-super-stub get property1() → core::int - return super.{self::Mixin1::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{self::Mixin1::property1} = value; - mixin-super-stub get property2() → core::int - return super.{self::Mixin1::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{self::Mixin1::property2} = value; -} -abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class2b&Class2a&Mixin1 - : super self::Class2a::•() - ; - mixin-super-stub get field1() → core::int - return super.{self::Mixin1::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{self::Mixin1::field1} = value; - mixin-super-stub get field2() → core::int - return super.{self::Mixin1::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{self::Mixin1::field2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); - mixin-super-stub get property1() → core::int - return super.{self::Mixin1::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{self::Mixin1::property1} = value; - mixin-super-stub get property2() → core::int - return super.{self::Mixin1::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{self::Mixin1::property2} = value; -} -abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class3b&Class3a&Mixin1 - : super self::Class3a::•() - ; - mixin-super-stub get field1() → core::int - return super.{self::Mixin1::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{self::Mixin1::field1} = value; - mixin-super-stub get field2() → core::int - return super.{self::Mixin1::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{self::Mixin1::field2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); - mixin-super-stub get property1() → core::int - return super.{self::Mixin1::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{self::Mixin1::property1} = value; - mixin-super-stub get property2() → core::int - return super.{self::Mixin1::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{self::Mixin1::property2} = value; -} -abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class4b&Class4a&Mixin2 - : super self::Class4a::•() - ; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); - mixin-super-stub get property1() → core::int - return super.{mai::Mixin2::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{mai::Mixin2::property1} = value; - mixin-super-stub get property2() → core::int - return super.{mai::Mixin2::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{mai::Mixin2::property2} = value; - mixin-super-stub get field1() → core::int - return super.{mai::Mixin2::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{mai::Mixin2::field1} = value; - mixin-super-stub get field2() → core::int - return super.{mai::Mixin2::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{mai::Mixin2::field2} = value; - mixin-super-stub get _#Mixin2#field1#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field1#AI}; - mixin-super-stub set _#Mixin2#field1#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field1#AI} = value; - mixin-super-stub get _#Mixin2#field2#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field2#AI}; - mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; -} -abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class5b&Class5a&Mixin2 - : super self::Class5a::•() - ; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); - mixin-super-stub get property1() → core::int - return super.{mai::Mixin2::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{mai::Mixin2::property1} = value; - mixin-super-stub get property2() → core::int - return super.{mai::Mixin2::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{mai::Mixin2::property2} = value; - mixin-super-stub get field1() → core::int - return super.{mai::Mixin2::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{mai::Mixin2::field1} = value; - mixin-super-stub get field2() → core::int - return super.{mai::Mixin2::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{mai::Mixin2::field2} = value; - mixin-super-stub get _#Mixin2#field1#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field1#AI}; - mixin-super-stub set _#Mixin2#field1#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field1#AI} = value; - mixin-super-stub get _#Mixin2#field2#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field2#AI}; - mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; -} -abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnonymousMixin*/ { - synthetic constructor •() → self::_Class6b&Class6a&Mixin2 - : super self::Class6a::•() - ; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); - mixin-super-stub get property1() → core::int - return super.{mai::Mixin2::property1}; - mixin-super-stub set property1(core::int value) → void - return super.{mai::Mixin2::property1} = value; - mixin-super-stub get property2() → core::int - return super.{mai::Mixin2::property2}; - mixin-super-stub set property2(core::int value) → void - return super.{mai::Mixin2::property2} = value; - mixin-super-stub get field1() → core::int - return super.{mai::Mixin2::field1}; - mixin-super-stub set field1(core::int value) → void - return super.{mai::Mixin2::field1} = value; - mixin-super-stub get field2() → core::int - return super.{mai::Mixin2::field2}; - mixin-super-stub set field2(core::int value) → void - return super.{mai::Mixin2::field2} = value; - mixin-super-stub get _#Mixin2#field1#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field1#AI}; - mixin-super-stub set _#Mixin2#field1#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field1#AI} = value; - mixin-super-stub get _#Mixin2#field2#AI() → core::int - return super.{mai::Mixin2::_#Mixin2#field2#AI}; - mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void - return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; -} - -library; -import self as mai; -import "dart:core" as core; -import "dart:_internal" as _in; - -class Super1 extends core::Object { - field core::int field1 = 42; - field core::int property1 = 42; - synthetic constructor •() → mai::Super1 - : super core::Object::•() - ; - method method1() → void {} - static method _#new#tearOff() → mai::Super1 - return new mai::Super1::•(); -} -class Super2 extends core::Object { - field core::int field2 = 87; - field core::int property2 = 87; - synthetic constructor •() → mai::Super2 - : super core::Object::•() - ; - method method2() → void {} - static method _#new#tearOff() → mai::Super2 - return new mai::Super2::•(); -} -abstract class Mixin2 extends mai::_Mixin2&Super1&Super2 /*isMixinDeclaration*/ { - field core::int _#Mixin2#field1#AI = _in::createSentinel<core::int>(); - field core::int _#Mixin2#field2#AI = _in::createSentinel<core::int>(); - method method1() → void { - super.{mai::Super1::method1}(); - } - method method2() → void {} - get property1() → core::int { - return super.{mai::Super1::property1}; - } - set property1(core::int value) → void { - super.{mai::Super1::property1} = value; - } - get property2() → core::int { - return 42; - } - set property2(core::int value) → void {} - get field1() → core::int { - synthesized core::int value = this.{mai::Mixin2::_#Mixin2#field1#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{mai::Mixin2::_#Mixin2#field1#AI} = (() → core::int { - return super.{mai::Super1::field1} = super.{mai::Super1::field1}.{core::num::+}(1){(core::num) → core::int}; - })(){() → core::int}; - return value; - } - set field1(synthesized core::int value) → void - this.{mai::Mixin2::_#Mixin2#field1#AI} = value; - get field2() → core::int { - synthesized core::int value = this.{mai::Mixin2::_#Mixin2#field2#AI}{core::int}; - if(_in::isSentinel(value)) - value = this.{mai::Mixin2::_#Mixin2#field2#AI} = (() → core::int { - return 88; - })(){() → core::int}; - return value; - } - set field2(synthesized core::int value) → void - this.{mai::Mixin2::_#Mixin2#field2#AI} = value; -} -abstract class _Mixin2&Super1&Super2 extends core::Object implements mai::Super1, mai::Super2 /*isAnonymousMixin*/ { - synthetic constructor •() → mai::_Mixin2&Super1&Super2 - : super core::Object::•() - ; -}
diff --git a/pkg/front_end/testcases/dart2js/native.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/native.dart.weak.transformed.expect deleted file mode 100644 index 66ed54b..0000000 --- a/pkg/front_end/testcases/dart2js/native.dart.weak.transformed.expect +++ /dev/null
@@ -1,408 +0,0 @@ -// -// Problems outside component: -// -// pkg/front_end/testcases/dart2js/native.dart:38:12: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external Class.externalGenerative(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:44:3: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// Class.nativeGenerative() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:41:20: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external factory Class.externalFact(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:47:11: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// factory Class.nativeFact() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:60:16: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external get externalInstanceGetter; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:63:16: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external set externalInstanceSetter(_); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:66:12: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external externalInstanceMethod(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:69:23: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static get externalStaticGetter; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:72:23: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static set externalStaticSetter(_); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:75:19: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static externalStaticMethod(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:77:7: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// get nativeInstanceGetter native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:78:7: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// set nativeInstanceSetter(_) native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:79:3: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// nativeInstanceMethod() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:82:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static get nativeStaticGetter native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:85:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static set nativeStaticSetter(_) native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:88:10: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static nativeStaticMethod() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:98:12: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external NativeClass.externalGenerative(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:102:3: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// NativeClass.nativeGenerative() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:100:20: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external factory NativeClass.externalFact(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:103:11: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// factory NativeClass.nativeFact() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:118:16: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external get externalInstanceGetter; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:121:16: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external set externalInstanceSetter(_); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:124:12: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external externalInstanceMethod(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:127:23: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static get externalStaticGetter; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:130:23: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static set externalStaticSetter(_); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:133:19: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external static externalStaticMethod(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:135:7: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// get nativeInstanceGetter native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:136:7: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// set nativeInstanceSetter(_) native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:137:3: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// nativeInstanceMethod() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:139:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static get nativeStaticGetter native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:140:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static set nativeStaticSetter(_) native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:141:10: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// static nativeStaticMethod() native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:19:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external get externalTopLevelGetter; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:22:14: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external set externalTopLevelSetter(_); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:25:10: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// external externalTopLevelFunction(); -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:27:5: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// get nativeTopLevelGetter native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:29:5: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// set nativeTopLevelSetter(_) native; -// ^ -// -// pkg/front_end/testcases/dart2js/native.dart:31:1: Error: Only JS interop members may be 'external'. -// Try removing the 'external' keyword or adding a JS interop annotation. -// nativeTopLevelFunction() native; -// ^ -// -library; -import self as self; -import "dart:core" as core; -import "dart:_internal" as _in; -import "dart:_js_helper" as _js; - -import "dart:_js_helper"; - -class Class extends core::Object { - field dynamic instanceField; - static field dynamic staticField = null; - constructor generative() → self::Class - : self::Class::instanceField = null, super core::Object::•() - ; - external constructor externalGenerative() → self::Class; - @#C2 - external constructor nativeGenerative() → self::Class; - static method _#generative#tearOff() → self::Class - return new self::Class::generative(); - static factory fact() → self::Class - return (null as dynamic) as{TypeError,ForDynamic} self::Class; - static method _#fact#tearOff() → self::Class - return self::Class::fact(); - static method _#externalGenerative#tearOff() → self::Class - return new self::Class::externalGenerative(); - external static factory externalFact() → self::Class; - static method _#externalFact#tearOff() → self::Class - return self::Class::externalFact(); - static method _#nativeGenerative#tearOff() → self::Class - return new self::Class::nativeGenerative(); - @#C2 - external static factory nativeFact() → self::Class; - static method _#nativeFact#tearOff() → self::Class - return self::Class::nativeFact(); - get instanceGetter() → dynamic - return null; - set instanceSetter(wildcard dynamic _#wc3#formal) → void {} - method instanceMethod() → dynamic {} - static get staticGetter() → dynamic - return null; - static set staticSetter(wildcard dynamic _#wc4#formal) → void {} - static method staticMethod() → dynamic {} - external get externalInstanceGetter() → dynamic; - external set externalInstanceSetter(wildcard dynamic _#wc5#formal) → void; - external method externalInstanceMethod() → dynamic; - external static get externalStaticGetter() → dynamic; - external static set externalStaticSetter(wildcard dynamic _#wc6#formal) → void; - external static method externalStaticMethod() → dynamic; - @#C2 - external get nativeInstanceGetter() → dynamic; - @#C2 - external set nativeInstanceSetter(wildcard dynamic _#wc7#formal) → void; - @#C2 - external method nativeInstanceMethod() → dynamic; - @#C2 - external static get nativeStaticGetter() → dynamic; - @#C2 - external static set nativeStaticSetter(wildcard dynamic _#wc8#formal) → void; - @#C2 - external static method nativeStaticMethod() → dynamic; -} -@#C4 -class NativeClass extends core::Object { - field dynamic instanceField; - static field dynamic staticField = null; - field dynamic instanceNamedField; - constructor generative() → self::NativeClass - : self::NativeClass::instanceNamedField = null, self::NativeClass::instanceField = null, super core::Object::•() - ; - external constructor externalGenerative() → self::NativeClass; - @#C2 - external constructor nativeGenerative() → self::NativeClass; - static method _#generative#tearOff() → self::NativeClass - return new self::NativeClass::generative(); - static factory fact() → self::NativeClass - return (null as dynamic) as{TypeError,ForDynamic} self::NativeClass; - static method _#fact#tearOff() → self::NativeClass - return self::NativeClass::fact(); - static method _#externalGenerative#tearOff() → self::NativeClass - return new self::NativeClass::externalGenerative(); - external static factory externalFact() → self::NativeClass; - static method _#externalFact#tearOff() → self::NativeClass - return self::NativeClass::externalFact(); - static method _#nativeGenerative#tearOff() → self::NativeClass - return new self::NativeClass::nativeGenerative(); - @#C2 - external static factory nativeFact() → self::NativeClass; - static method _#nativeFact#tearOff() → self::NativeClass - return self::NativeClass::nativeFact(); - get instanceGetter() → dynamic - return null; - set instanceSetter(wildcard dynamic _#wc9#formal) → void {} - method instanceMethod() → dynamic {} - static get staticGetter() → dynamic - return null; - static set staticSetter(wildcard dynamic _#wc10#formal) → void {} - static method staticMethod() → dynamic {} - external get externalInstanceGetter() → dynamic; - external set externalInstanceSetter(wildcard dynamic _#wc11#formal) → void; - external method externalInstanceMethod() → dynamic; - external static get externalStaticGetter() → dynamic; - external static set externalStaticSetter(wildcard dynamic _#wc12#formal) → void; - external static method externalStaticMethod() → dynamic; - @#C2 - external get nativeInstanceGetter() → dynamic; - @#C2 - external set nativeInstanceSetter(wildcard dynamic _#wc13#formal) → void; - @#C2 - external method nativeInstanceMethod() → dynamic; - @#C2 - external static get nativeStaticGetter() → dynamic; - @#C2 - external static set nativeStaticSetter(wildcard dynamic _#wc14#formal) → void; - @#C2 - external static method nativeStaticMethod() → dynamic; -} -static field dynamic topLevelField; -static get topLevelGetter() → dynamic - return null; -static set topLevelSetter(wildcard dynamic _#wc0#formal) → void {} -static method topLevelFunction() → dynamic {} -external static get externalTopLevelGetter() → dynamic; -external static set externalTopLevelSetter(wildcard dynamic _#wc1#formal) → void; -external static method externalTopLevelFunction() → dynamic; -@#C2 -external static get nativeTopLevelGetter() → dynamic; -@#C2 -external static set nativeTopLevelSetter(wildcard dynamic _#wc2#formal) → void; -@#C2 -external static method nativeTopLevelFunction() → dynamic; -static method main() → dynamic { - if(true) - return; - self::topLevelField; - self::topLevelGetter; - self::topLevelSetter = null; - self::topLevelFunction(); - self::externalTopLevelGetter; - self::externalTopLevelSetter = null; - self::externalTopLevelFunction(); - self::nativeTopLevelGetter; - self::nativeTopLevelSetter = null; - self::nativeTopLevelFunction(); - self::Class c1 = new self::Class::generative(); - self::Class::fact(); - new self::Class::externalGenerative(); - self::Class::externalFact(); - new self::Class::nativeGenerative(); - self::Class::nativeFact(); - c1.{self::Class::instanceField}{dynamic}; - c1.{self::Class::instanceGetter}{dynamic}; - c1.{self::Class::instanceSetter} = null; - c1.{self::Class::instanceMethod}(){() → dynamic}; - self::Class::staticField; - self::Class::staticGetter; - self::Class::staticSetter = null; - self::Class::staticMethod(); - c1.{self::Class::externalInstanceGetter}{dynamic}; - c1.{self::Class::externalInstanceSetter} = null; - c1.{self::Class::externalInstanceMethod}(){() → dynamic}; - self::Class::externalStaticGetter; - self::Class::externalStaticSetter = null; - self::Class::externalStaticMethod(); - c1.{self::Class::nativeInstanceGetter}{dynamic}; - c1.{self::Class::nativeInstanceSetter} = null; - c1.{self::Class::nativeInstanceMethod}(){() → dynamic}; - self::Class::nativeStaticGetter; - self::Class::nativeStaticSetter = null; - self::Class::nativeStaticMethod(); - self::NativeClass c2 = new self::NativeClass::generative(); - self::NativeClass::fact(); - new self::NativeClass::externalGenerative(); - self::NativeClass::externalFact(); - new self::NativeClass::nativeGenerative(); - self::NativeClass::nativeFact(); - c2.{self::NativeClass::instanceField}{dynamic}; - c2.{self::NativeClass::instanceGetter}{dynamic}; - c2.{self::NativeClass::instanceSetter} = null; - c2.{self::NativeClass::instanceMethod}(){() → dynamic}; - self::NativeClass::staticField; - self::NativeClass::staticGetter; - self::NativeClass::staticSetter = null; - self::NativeClass::staticMethod(); - c2.{self::NativeClass::externalInstanceGetter}{dynamic}; - c2.{self::NativeClass::externalInstanceSetter} = null; - c2.{self::NativeClass::externalInstanceMethod}(){() → dynamic}; - self::NativeClass::externalStaticGetter; - self::NativeClass::externalStaticSetter = null; - self::NativeClass::externalStaticMethod(); - c2.{self::NativeClass::nativeInstanceGetter}{dynamic}; - c2.{self::NativeClass::nativeInstanceSetter} = null; - c2.{self::NativeClass::nativeInstanceMethod}(){() → dynamic}; - self::NativeClass::nativeStaticGetter; - self::NativeClass::nativeStaticSetter = null; - self::NativeClass::nativeStaticMethod(); -} - -constants { - #C1 = "" - #C2 = _in::ExternalName {name:#C1} - #C3 = "d" - #C4 = _js::Native {name:#C3} -} - -Extra constant evaluation status: -Evaluated: AsExpression @ org-dartlang-testcase:///native.dart:35:32 -> NullConstant(null) -Evaluated: AsExpression @ org-dartlang-testcase:///native.dart:95:38 -> NullConstant(null) -Extra constant evaluation: evaluated: 96, effectively constant: 2 - - -Constructor coverage from constants: -org-dartlang-testcase:///native.dart: -- ExternalName. (from org-dartlang-sdk:///lib/internal/internal.dart) -- Object. (from org-dartlang-sdk:///lib/core/object.dart) -- Native. (from org-dartlang-sdk:///lib/_internal/js_runtime/lib/annotations.dart)
diff --git a/pkg/front_end/testcases/dart2js/sealed_class.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/sealed_class.dart.weak.transformed.expect deleted file mode 100644 index 90d6ecd..0000000 --- a/pkg/front_end/testcases/dart2js/sealed_class.dart.weak.transformed.expect +++ /dev/null
@@ -1,24 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -abstract sealed class Class extends core::Object { - final field core::int value; - constructor •(core::int value) → self::Class - : self::Class::value = value, super core::Object::•() - ; -} -class A extends self::Class { - constructor •(core::int value) → self::A - : super self::Class::•(value) - ; - static method _#new#tearOff(core::int value) → self::A - return new self::A::•(value); -} -class B extends self::Class { - constructor •(core::int value) → self::B - : super self::Class::•(value) - ; - static method _#new#tearOff(core::int value) → self::B - return new self::B::•(value); -}
diff --git a/pkg/front_end/testcases/dart2js/tear_off_patch/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/tear_off_patch/main.dart.weak.transformed.expect deleted file mode 100644 index e5035cb..0000000 --- a/pkg/front_end/testcases/dart2js/tear_off_patch/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,101 +0,0 @@ -library; -import self as self; -import "dart:core" as core; -import "dart:test" as test; - -import "dart:test"; - -static method main() → dynamic { - #C1; - #C2; - #C3; - #C4; - #C5; - #C6; - #C7; - #C8; - #C9; - #C10; - #C11; - #C12; -} - -library; -import self as test; -import "dart:core" as core; -import "dart:_internal" as _in; - -import "dart:_internal"; - -typedef Alias<T extends core::num> = test::Class<T>; -typedef AliasImpl<T extends core::num> = test::ClassImpl<T>; -@/* from org-dartlang-testcase:///patch_lib.dart */ #C13 -class Class<T extends core::Object? = dynamic> extends core::Object { - @#C13 - constructor /* from org-dartlang-testcase:///patch_lib.dart */ •({core::bool defaultValue = #C14, required test::Class::T% value}) → test::Class<test::Class::T%> - : super core::Object::•() { - core::print("patch Class"); - } - static method /* from org-dartlang-testcase:///patch_lib.dart */ _#new#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::Class::_#new#tearOff::T% value}) → test::Class<test::Class::_#new#tearOff::T%> - return new test::Class::•<test::Class::_#new#tearOff::T%>(defaultValue: defaultValue, value: value); - @#C13 - static factory /* from org-dartlang-testcase:///patch_lib.dart */ fact<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::Class::fact::T% value}) → test::Class<test::Class::fact::T%> - return new test::ClassImpl::•<test::Class::fact::T%>(defaultValue: defaultValue, value: value); - static method /* from org-dartlang-testcase:///patch_lib.dart */ _#fact#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::Class::_#fact#tearOff::T% value}) → test::Class<test::Class::_#fact#tearOff::T%> - return test::Class::fact<test::Class::_#fact#tearOff::T%>(defaultValue: defaultValue, value: value); - @#C13 - static factory /* from org-dartlang-testcase:///patch_lib.dart */ redirect<T extends core::Object? = dynamic>({core::bool defaultValue = #C15, required test::Class::redirect::T% value}) → test::Class<test::Class::redirect::T%> /* redirection-target: test::ClassImpl::•<test::Class::redirect::T%>*/ - return new test::ClassImpl::•<test::Class::redirect::T%>(defaultValue: defaultValue, value: value); - static method /* from org-dartlang-testcase:///patch_lib.dart */ _#redirect#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::Class::_#redirect#tearOff::T% value}) → test::Class<test::Class::_#redirect#tearOff::T%> - return new test::ClassImpl::•<test::Class::_#redirect#tearOff::T%>(defaultValue: defaultValue, value: value); - @#C13 - static factory /* from org-dartlang-testcase:///patch_lib.dart */ redirect2<T extends core::Object? = dynamic>({core::bool defaultValue = #C15, required test::Class::redirect2::T% value}) → test::Class<test::Class::redirect2::T%> /* redirection-target: test::ClassImpl::patched<test::Class::redirect2::T%>*/ - return new test::ClassImpl::patched<test::Class::redirect2::T%>(defaultValue: defaultValue, value: value); - static method /* from org-dartlang-testcase:///patch_lib.dart */ _#redirect2#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::Class::_#redirect2#tearOff::T% value}) → test::Class<test::Class::_#redirect2#tearOff::T%> - return new test::ClassImpl::patched<test::Class::_#redirect2#tearOff::T%>(defaultValue: defaultValue, value: value); -} -@/* from org-dartlang-testcase:///patch_lib.dart */ #C13 -class ClassImpl<T extends core::Object? = dynamic> extends core::Object implements test::Class<test::ClassImpl::T%> { - constructor •({core::bool defaultValue = #C14, required test::ClassImpl::T% value}) → test::ClassImpl<test::ClassImpl::T%> - : super core::Object::•() - ; - @#C13 - constructor /* from org-dartlang-testcase:///patch_lib.dart */ patched({core::bool defaultValue = #C14, required test::ClassImpl::T% value}) → test::ClassImpl<test::ClassImpl::T%> - : super core::Object::•() { - core::print("patch ClassImpl"); - } - static method _#new#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::ClassImpl::_#new#tearOff::T% value}) → test::ClassImpl<test::ClassImpl::_#new#tearOff::T%> - return new test::ClassImpl::•<test::ClassImpl::_#new#tearOff::T%>(defaultValue: defaultValue, value: value); - static method /* from org-dartlang-testcase:///patch_lib.dart */ _#patched#tearOff<T extends core::Object? = dynamic>({core::bool defaultValue = #C14, required test::ClassImpl::_#patched#tearOff::T% value}) → test::ClassImpl<test::ClassImpl::_#patched#tearOff::T%> - return new test::ClassImpl::patched<test::ClassImpl::_#patched#tearOff::T%>(defaultValue: defaultValue, value: value); -} -static method _#Alias#new#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#Alias#new#tearOff::T value}) → test::Class<test::_#Alias#new#tearOff::T> - return new test::Class::•<test::_#Alias#new#tearOff::T>(defaultValue: defaultValue, value: value); -static method _#Alias#fact#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#Alias#fact#tearOff::T value}) → test::Class<test::_#Alias#fact#tearOff::T> - return test::Class::fact<test::_#Alias#fact#tearOff::T>(defaultValue: defaultValue, value: value); -static method _#Alias#redirect#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#Alias#redirect#tearOff::T value}) → test::Class<test::_#Alias#redirect#tearOff::T> - return test::Class::_#redirect#tearOff<test::_#Alias#redirect#tearOff::T>(defaultValue: defaultValue, value: value); -static method _#Alias#redirect2#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#Alias#redirect2#tearOff::T value}) → test::Class<test::_#Alias#redirect2#tearOff::T> - return test::Class::_#redirect2#tearOff<test::_#Alias#redirect2#tearOff::T>(defaultValue: defaultValue, value: value); -static method _#AliasImpl#new#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#AliasImpl#new#tearOff::T value}) → test::ClassImpl<test::_#AliasImpl#new#tearOff::T> - return new test::ClassImpl::•<test::_#AliasImpl#new#tearOff::T>(defaultValue: defaultValue, value: value); -static method _#AliasImpl#patched#tearOff<T extends core::num>({core::bool defaultValue = #C14, required test::_#AliasImpl#patched#tearOff::T value}) → test::ClassImpl<test::_#AliasImpl#patched#tearOff::T> - return new test::ClassImpl::patched<test::_#AliasImpl#patched#tearOff::T>(defaultValue: defaultValue, value: value); - -constants { - #C1 = static-tearoff test::Class::_#new#tearOff - #C2 = static-tearoff test::Class::_#fact#tearOff - #C3 = static-tearoff test::Class::_#redirect#tearOff - #C4 = static-tearoff test::Class::_#redirect2#tearOff - #C5 = static-tearoff test::ClassImpl::_#new#tearOff - #C6 = static-tearoff test::ClassImpl::_#patched#tearOff - #C7 = static-tearoff test::_#Alias#new#tearOff - #C8 = static-tearoff test::_#Alias#fact#tearOff - #C9 = static-tearoff test::_#Alias#redirect#tearOff - #C10 = static-tearoff test::_#Alias#redirect2#tearOff - #C11 = static-tearoff test::_#AliasImpl#new#tearOff - #C12 = static-tearoff test::_#AliasImpl#patched#tearOff - #C13 = _in::_Patch {} - #C14 = true - #C15 = null -}
diff --git a/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.dart.weak.transformed.expect deleted file mode 100644 index 74cdd9f..0000000 --- a/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,117 +0,0 @@ -library; -import self as self; - -import "org-dartlang-testcase:///main_lib.dart"; -import "org-dartlang-testcase:///main_lib2.dart"; - -static method main() → dynamic {} - -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform. -// import 'dart:ui'; -// ^ -// Context: The unavailable library 'dart:ui' is imported through these packages: -// -// main_lib.dart => package:flutter_package => dart:ui -// main_lib.dart => package:user_package => dart:ui -// main_lib.dart => package:user_package => package:flutter_package => dart:ui -// main_lib.dart => dart:ui -// main_lib3.dart => dart:ui -// -// Detailed import paths for (some of) the these imports: -// -// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui -// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui -// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui -// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui -// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.dart => main_lib.dart => dart:ui -// main.dart => main_lib2.dart => main_lib3.dart => dart:ui -// -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform. -// import 'dart:cli'; -// ^ -// Context: The unavailable library 'dart:cli' is imported through these packages: -// -// main_lib.dart => package:vm_package => dart:cli -// main_lib.dart => package:user_package => dart:cli -// main_lib.dart => package:user_package => package:vm_package => dart:cli -// main_lib.dart => dart:cli -// main_lib3.dart => dart:cli -// -// Detailed import paths for (some of) the these imports: -// -// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli -// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli -// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli -// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli -// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.dart => main_lib.dart => dart:cli -// main.dart => main_lib2.dart => main_lib3.dart => dart:cli -// -// -import self as self2; - -import "package:flutter_package/export_flutter_lib.dart"; -import "package:flutter_package/import_flutter_lib.dart"; -import "package:vm_package/export_vm_lib.dart"; -import "package:vm_package/import_vm_lib.dart"; -import "package:web_package/export_web_lib.dart"; -import "package:web_package/import_web_lib.dart"; -import "package:user_package/export_flutter_lib1.dart"; -import "package:user_package/export_flutter_lib2.dart"; -import "package:user_package/import_flutter_lib1.dart"; -import "package:user_package/import_flutter_lib2.dart"; -import "package:user_package/import_flutter_lib3.dart"; -import "package:user_package/export_vm_lib1.dart"; -import "package:user_package/export_vm_lib2.dart"; -import "package:user_package/import_vm_lib1.dart"; -import "package:user_package/import_vm_lib2.dart"; -import "package:user_package/import_vm_lib3.dart"; -import "package:user_package/export_web_lib1.dart"; -import "package:user_package/export_web_lib2.dart"; -import "package:user_package/import_web_lib1.dart"; -import "package:user_package/import_web_lib2.dart"; -import "package:user_package/import_web_lib3.dart"; -import "dart:ui"; -import "dart:cli"; -import "dart:io"; -import "dart:isolate"; -import "dart:html"; -import "dart:js"; - - -library; -import self as self3; - -import "org-dartlang-testcase:///main_lib3.dart"; - - -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. -// import 'dart:ui'; -// ^ -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform. -// import 'dart:cli'; -// ^ -// -import self as self4; - -import "dart:ui"; -import "dart:cli"; -import "dart:io"; -import "dart:isolate"; -import "dart:html"; -import "dart:js";
diff --git a/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.no_link.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.no_link.dart.weak.transformed.expect deleted file mode 100644 index 61d43bd..0000000 --- a/pkg/front_end/testcases/dart2js/unresolved_dart_library/main.no_link.dart.weak.transformed.expect +++ /dev/null
@@ -1,117 +0,0 @@ -library; -import self as self; - -import "org-dartlang-testcase:///main_lib.dart"; -import "org-dartlang-testcase:///main_lib2.dart"; - -static method main() → dynamic {} - -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform. -// import 'dart:ui'; -// ^ -// Context: The unavailable library 'dart:ui' is imported through these packages: -// -// main_lib.dart => package:flutter_package => dart:ui -// main_lib.dart => package:user_package => dart:ui -// main_lib.dart => package:user_package => package:flutter_package => dart:ui -// main_lib.dart => dart:ui -// main_lib3.dart => dart:ui -// -// Detailed import paths for (some of) the these imports: -// -// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui -// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui -// main.no_link.dart => main_lib.dart => dart:ui -// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui -// -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform. -// import 'dart:cli'; -// ^ -// Context: The unavailable library 'dart:cli' is imported through these packages: -// -// main_lib.dart => package:vm_package => dart:cli -// main_lib.dart => package:user_package => dart:cli -// main_lib.dart => package:user_package => package:vm_package => dart:cli -// main_lib.dart => dart:cli -// main_lib3.dart => dart:cli -// -// Detailed import paths for (some of) the these imports: -// -// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli -// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli -// main.no_link.dart => main_lib.dart => dart:cli -// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli -// -// -import self as self2; - -import "package:flutter_package/export_flutter_lib.dart"; -import "package:flutter_package/import_flutter_lib.dart"; -import "package:vm_package/export_vm_lib.dart"; -import "package:vm_package/import_vm_lib.dart"; -import "package:web_package/export_web_lib.dart"; -import "package:web_package/import_web_lib.dart"; -import "package:user_package/export_flutter_lib1.dart"; -import "package:user_package/export_flutter_lib2.dart"; -import "package:user_package/import_flutter_lib1.dart"; -import "package:user_package/import_flutter_lib2.dart"; -import "package:user_package/import_flutter_lib3.dart"; -import "package:user_package/export_vm_lib1.dart"; -import "package:user_package/export_vm_lib2.dart"; -import "package:user_package/import_vm_lib1.dart"; -import "package:user_package/import_vm_lib2.dart"; -import "package:user_package/import_vm_lib3.dart"; -import "package:user_package/export_web_lib1.dart"; -import "package:user_package/export_web_lib2.dart"; -import "package:user_package/import_web_lib1.dart"; -import "package:user_package/import_web_lib2.dart"; -import "package:user_package/import_web_lib3.dart"; -import "dart:ui"; -import "dart:cli"; -import "dart:io"; -import "dart:isolate"; -import "dart:html"; -import "dart:js"; - - -library; -import self as self3; - -import "org-dartlang-testcase:///main_lib3.dart"; - - -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. -// import 'dart:ui'; -// ^ -// -// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform. -// import 'dart:cli'; -// ^ -// -import self as self4; - -import "dart:ui"; -import "dart:cli"; -import "dart:io"; -import "dart:isolate"; -import "dart:html"; -import "dart:js";
diff --git a/pkg/front_end/testcases/dart2js/unresolved_imports/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/unresolved_imports/main.dart.weak.transformed.expect deleted file mode 100644 index 95f77cb..0000000 --- a/pkg/front_end/testcases/dart2js/unresolved_imports/main.dart.weak.transformed.expect +++ /dev/null
@@ -1,38 +0,0 @@ -library; -// -// Problems in library: -// -// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message> -// import 'non_existing_file'; -// ^ -// -// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message> -// import 'package:existing_package/non_existing_package_file.dart'; -// ^ -// -// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart' -// import 'package:non_existing_package/file.dart'; -// ^ -// -// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform. -// import 'dart:ui'; -// ^ -// Context: The unavailable library 'dart:ui' is imported through these paths: -// -// main.dart => dart:ui -// -// -import self as self; - -import "dart:html"; -import "dart:js"; -import "dart:io"; -import "dart:isolate"; -import "dart:ui"; -import "org-dartlang-testcase:///non_existing_file"; -import "package:existing_package/non_existing_package_file.dart"; -import "package:non_existing_package/file.dart"; - - -library; -import self as self2;
diff --git a/pkg/front_end/testcases/enhanced_parts/missing_part_file.dart.weak.transformed.expect b/pkg/front_end/testcases/enhanced_parts/missing_part_file.dart.weak.transformed.expect deleted file mode 100644 index c1bdd1c..0000000 --- a/pkg/front_end/testcases/enhanced_parts/missing_part_file.dart.weak.transformed.expect +++ /dev/null
@@ -1,60 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_parts/missing_part_file_part.dart:7:6: Error: Error when reading 'pkg/front_end/testcases/enhanced_parts/non_existing_part_file.dart': <os-message> -// part 'non_existing_part_file.dart'; -// ^ -// -// pkg/front_end/testcases/enhanced_parts/missing_part_file_part.dart:7:6: Error: Can't use 'pkg/front_end/testcases/enhanced_parts/non_existing_part_file.dart' as a part, because it has no 'part of' declaration. -// part 'non_existing_part_file.dart'; -// ^ -// -import self as self; - -part missing_part_file_part.dart; -part non_existing_part_file.dart; - -library; -import self as self2;
diff --git a/pkg/front_end/testcases/enhanced_parts/part_with_import.dart.weak.transformed.expect b/pkg/front_end/testcases/enhanced_parts/part_with_import.dart.weak.transformed.expect deleted file mode 100644 index fcc5c50..0000000 --- a/pkg/front_end/testcases/enhanced_parts/part_with_import.dart.weak.transformed.expect +++ /dev/null
@@ -1,68 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_parts/part_with_import.dart:8:3: Error: Method not found: 'foo'. -// foo(); // Error -// ^^^ -// -import self as self; -import "part_with_import_lib.dart" as par; - -import "org-dartlang-testcase:///part_with_import_lib.dart"; - -part part_with_import_part.dart; -static method method1() → dynamic { - invalid-expression "pkg/front_end/testcases/enhanced_parts/part_with_import.dart:8:3: Error: Method not found: 'foo'. - foo(); // Error - ^^^"; -} -static method /* from org-dartlang-testcase:///part_with_import_part.dart */ method2() → dynamic { - par::foo(); -} - -library; -import self as par; - -static method foo() → void {}
diff --git a/pkg/front_end/testcases/enhanced_parts/part_with_parts.dart.weak.transformed.expect b/pkg/front_end/testcases/enhanced_parts/part_with_parts.dart.weak.transformed.expect deleted file mode 100644 index 2b6a3ff..0000000 --- a/pkg/front_end/testcases/enhanced_parts/part_with_parts.dart.weak.transformed.expect +++ /dev/null
@@ -1,56 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -import self as self; - -part part_with_parts_part1.dart; -part part_with_parts_part2.dart; -static method method1() → dynamic { - self::method3(); -} -static method /* from org-dartlang-testcase:///part_with_parts_part1.dart */ method2() → dynamic { - self::method3(); -} -static method /* from org-dartlang-testcase:///part_with_parts_part2.dart */ method3() → dynamic { - self::method1(); - self::method2(); -}
diff --git a/pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart.weak.transformed.expect deleted file mode 100644 index 42e56fb..0000000 --- a/pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart.weak.transformed.expect +++ /dev/null
@@ -1,94 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart:44:7: Error: The getter 'isEven' isn't defined for the class 'num'. -// Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'. -// x.isEven; // Error. -// ^^^^^^ -// -import self as self; -import "dart:core" as core; - -static method nullableInt() → core::int? - return 1; -static method notEqualNull_assignIfNull() → dynamic { - has-declared-initializer core::int? x = null; - if(!((let final core::int? #t1 = x in #t1 == null ?{core::int?} x = self::nullableInt() : #t1{core::int}) == null)) { - x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method notEqualNullNull_eq() → dynamic { - has-declared-initializer core::int? x = null; - if(!((x = self::nullableInt()) == null)) { - x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method is_eq() → dynamic { - has-declared-initializer core::int? x = null; - if((x = self::nullableInt()) is core::int) { - x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method is_plusEq() → dynamic { - core::num x = 2; - if((x = x.{core::num::+}(1){(core::num) → core::num}) is core::int) { - x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method is_postfix() → dynamic { - core::num x = 2; - if((let final core::num #t2 = x in let final core::num #t3 = x = #t2.{core::num::+}(1){(core::num) → core::num} in #t2) is core::int) { - invalid-expression "pkg/front_end/testcases/inference_update_4/assignment_promotion_in_if_statement.dart:44:7: Error: The getter 'isEven' isn't defined for the class 'num'. -Try correcting the name to the name of an existing getter, or defining a getter or field named 'isEven'. - x.isEven; // Error. - ^^^^^^" in x{<unresolved>}.isEven; - } -} -static method is_prefix() → dynamic { - core::num x = 2; - if((x = x.{core::num::+}(1){(core::num) → core::num}) is core::int) { - x{core::int}.{core::int::isEven}{core::bool}; - } -}
diff --git a/pkg/front_end/testcases/inference_update_4/final_var_promotion_kept_test.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_update_4/final_var_promotion_kept_test.dart.weak.transformed.expect deleted file mode 100644 index 18914e0..0000000 --- a/pkg/front_end/testcases/inference_update_4/final_var_promotion_kept_test.dart.weak.transformed.expect +++ /dev/null
@@ -1,93 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm_shared/lib/compact_hash.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -import self as self; -import "dart:core" as core; - -static method isInt(core::bool b) → dynamic { - final core::num x; - if(b) { - x = 1; - } - else { - x = 0.1; - } - if(x is core::int) { - () → core::bool => x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method isInt_late(core::bool b) → dynamic { - late final core::num x; - if(b) { - x = 1; - } - else { - x = 0.1; - } - if(x is core::int) { - () → core::bool => x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method notEqNull(core::bool b) → dynamic { - final core::int? x; - if(b) { - x = 1; - } - else { - x = null; - } - if(!(x == null)) { - () → core::bool => x{core::int}.{core::int::isEven}{core::bool}; - } -} -static method notEqNull_late(core::bool b) → dynamic { - late final core::int? x; - if(b) { - x = 1; - } - else { - x = null; - } - if(!(x == null)) { - () → core::bool => x{core::int}.{core::int::isEven}{core::bool}; - } -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.modular.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.modular.expect deleted file mode 100644 index 6e37460..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.modular.expect +++ /dev/null
@@ -1,25 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X> = self::A<dynamic>> extends core::Object { - synthetic constructor •() → self::A<self::A::X> - : super core::Object::•() - ; -} -class B extends self::A<self::B> { - synthetic constructor •() → self::B - : super self::A::•() - ; -} -class C extends self::B { - synthetic constructor •() → self::C - : super self::B::•() - ; -} -static method f<X extends self::A<self::f::X> = self::A<dynamic>>(self::f::X x) → void {} -static method main() → void { - self::f<self::B>(new self::B::•()); - self::f<self::B>(new self::C::•()); - self::f<self::B>(new self::C::•()); -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.outline.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.outline.expect deleted file mode 100644 index 09e9f701..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.outline.expect +++ /dev/null
@@ -1,20 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X> = self::A<dynamic>> extends core::Object { - synthetic constructor •() → self::A<self::A::X> - ; -} -class B extends self::A<self::B> { - synthetic constructor •() → self::B - ; -} -class C extends self::B { - synthetic constructor •() → self::C - ; -} -static method f<X extends self::A<self::f::X> = self::A<dynamic>>(self::f::X x) → void - ; -static method main() → void - ;
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.transformed.expect deleted file mode 100644 index 6e37460..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_1.dart.weak.transformed.expect +++ /dev/null
@@ -1,25 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X> = self::A<dynamic>> extends core::Object { - synthetic constructor •() → self::A<self::A::X> - : super core::Object::•() - ; -} -class B extends self::A<self::B> { - synthetic constructor •() → self::B - : super self::A::•() - ; -} -class C extends self::B { - synthetic constructor •() → self::C - : super self::B::•() - ; -} -static method f<X extends self::A<self::f::X> = self::A<dynamic>>(self::f::X x) → void {} -static method main() → void { - self::f<self::B>(new self::B::•()); - self::f<self::B>(new self::C::•()); - self::f<self::B>(new self::C::•()); -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.modular.expect deleted file mode 100644 index 12af0cf..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.modular.expect +++ /dev/null
@@ -1,34 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A1<X extends self::A1<self::A1::X, self::A1::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A1::X, self::A1::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A1<self::A1::X, self::A1::Y> - : super core::Object::•() - ; -} -class A2<X extends self::A1<self::A2::X, self::A2::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A2::X, self::A2::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A2<self::A2::X, self::A2::Y> - : super core::Object::•() - ; -} -class B extends self::A1<self::B, self::B> implements self::A2<self::B, self::B> { - synthetic constructor •() → self::B - : super self::A1::•() - ; -} -class C1 extends self::B { - synthetic constructor •() → self::C1 - : super self::B::•() - ; -} -class C2 extends self::B { - synthetic constructor •() → self::C2 - : super self::B::•() - ; -} -static method f<X extends self::A1<self::f::X, self::f::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::f::X, self::f::Y> = self::A2<dynamic, dynamic>>(self::f::X x, self::f::Y y) → void {} -static method main() → void { - self::f<self::B, self::B>(new self::C1::•(), new self::C2::•()); - self::f<self::B, self::B>(new self::C1::•(), new self::C2::•()); -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.outline.expect deleted file mode 100644 index b6c177b9..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.outline.expect +++ /dev/null
@@ -1,28 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A1<X extends self::A1<self::A1::X, self::A1::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A1::X, self::A1::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A1<self::A1::X, self::A1::Y> - ; -} -class A2<X extends self::A1<self::A2::X, self::A2::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A2::X, self::A2::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A2<self::A2::X, self::A2::Y> - ; -} -class B extends self::A1<self::B, self::B> implements self::A2<self::B, self::B> { - synthetic constructor •() → self::B - ; -} -class C1 extends self::B { - synthetic constructor •() → self::C1 - ; -} -class C2 extends self::B { - synthetic constructor •() → self::C2 - ; -} -static method f<X extends self::A1<self::f::X, self::f::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::f::X, self::f::Y> = self::A2<dynamic, dynamic>>(self::f::X x, self::f::Y y) → void - ; -static method main() → void - ;
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.transformed.expect deleted file mode 100644 index 12af0cf..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_2.dart.weak.transformed.expect +++ /dev/null
@@ -1,34 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A1<X extends self::A1<self::A1::X, self::A1::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A1::X, self::A1::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A1<self::A1::X, self::A1::Y> - : super core::Object::•() - ; -} -class A2<X extends self::A1<self::A2::X, self::A2::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::A2::X, self::A2::Y> = self::A2<dynamic, dynamic>> extends core::Object { - synthetic constructor •() → self::A2<self::A2::X, self::A2::Y> - : super core::Object::•() - ; -} -class B extends self::A1<self::B, self::B> implements self::A2<self::B, self::B> { - synthetic constructor •() → self::B - : super self::A1::•() - ; -} -class C1 extends self::B { - synthetic constructor •() → self::C1 - : super self::B::•() - ; -} -class C2 extends self::B { - synthetic constructor •() → self::C2 - : super self::B::•() - ; -} -static method f<X extends self::A1<self::f::X, self::f::Y> = self::A1<dynamic, dynamic>, Y extends self::A2<self::f::X, self::f::Y> = self::A2<dynamic, dynamic>>(self::f::X x, self::f::Y y) → void {} -static method main() → void { - self::f<self::B, self::B>(new self::C1::•(), new self::C2::•()); - self::f<self::B, self::B>(new self::C1::•(), new self::C2::•()); -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.modular.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.modular.expect deleted file mode 100644 index e884e48..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.modular.expect +++ /dev/null
@@ -1,23 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X, self::A::Y%> = self::A<dynamic, dynamic>, Y extends core::Object? = dynamic> extends core::Object { - synthetic constructor •() → self::A<self::A::X, self::A::Y%> - : super core::Object::•() - ; -} -class B extends self::A<self::B, core::String> { - synthetic constructor •() → self::B - : super self::A::•() - ; -} -class C extends self::B { - synthetic constructor •() → self::C - : super self::B::•() - ; -} -static method foo<T extends self::A<self::foo::T, self::foo::S%> = self::A<dynamic, dynamic>, S extends core::Object? = dynamic>(self::foo::T t) → dynamic {} -static method main() → dynamic { - self::foo<self::B, core::String>(new self::C::•()); -}
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.outline.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.outline.expect deleted file mode 100644 index 6d8718f..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.outline.expect +++ /dev/null
@@ -1,20 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X, self::A::Y%> = self::A<dynamic, dynamic>, Y extends core::Object? = dynamic> extends core::Object { - synthetic constructor •() → self::A<self::A::X, self::A::Y%> - ; -} -class B extends self::A<self::B, core::String> { - synthetic constructor •() → self::B - ; -} -class C extends self::B { - synthetic constructor •() → self::C - ; -} -static method foo<T extends self::A<self::foo::T, self::foo::S%> = self::A<dynamic, dynamic>, S extends core::Object? = dynamic>(self::foo::T t) → dynamic - ; -static method main() → dynamic - ;
diff --git a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.transformed.expect deleted file mode 100644 index e884e48..0000000 --- a/pkg/front_end/testcases/inference_using_bounds/f_bounded_experiment_3.dart.weak.transformed.expect +++ /dev/null
@@ -1,23 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -class A<X extends self::A<self::A::X, self::A::Y%> = self::A<dynamic, dynamic>, Y extends core::Object? = dynamic> extends core::Object { - synthetic constructor •() → self::A<self::A::X, self::A::Y%> - : super core::Object::•() - ; -} -class B extends self::A<self::B, core::String> { - synthetic constructor •() → self::B - : super self::A::•() - ; -} -class C extends self::B { - synthetic constructor •() → self::C - : super self::B::•() - ; -} -static method foo<T extends self::A<self::foo::T, self::foo::S%> = self::A<dynamic, dynamic>, S extends core::Object? = dynamic>(self::foo::T t) → dynamic {} -static method main() → dynamic { - self::foo<self::B, core::String>(new self::C::•()); -}
diff --git a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.modular.expect b/pkg/front_end/testcases/macros/augment_same_file.dart.weak.modular.expect deleted file mode 100644 index dfff5f2..0000000 --- a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.modular.expect +++ /dev/null
@@ -1,35 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -import "org-dartlang-testcase:///augment_same_file.dart"; - -static field core::String _message = "foo" /* from org-dartlang-testcase:///augment_same_file_lib.dart */; -static method main() → dynamic { - self::message = "bar"; - self::expectEquals(self::foo(), "augment2-get: augment1-get: augment2-set: augment1-set: bar"); -} -static method expectEquals(dynamic x, dynamic y) → dynamic { - if(!(x =={core::Object::==}{(core::Object) → core::bool} y)) { - throw "Unexpectedly received two unequal values: x=${x} y=${y}."; - } -} -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ foo() → core::String { - return "augment2-get: ${self::_#foo#augment1()}"; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ message(core::String value) → void { - self::_#message#augment1 = value; - self::_message = "augment2-set: ${self::_message}"; -} -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#foo#augment0() → core::String - return self::_message; -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#foo#augment1() → core::String { - return "augment1-get: ${self::_#foo#augment0()}"; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#message#augment0(core::String variable) → void { - self::_message = variable; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#message#augment1(core::String value) → void { - self::_#message#augment0 = value; - self::_message = "augment1-set: ${self::_message}"; -}
diff --git a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.outline.expect b/pkg/front_end/testcases/macros/augment_same_file.dart.weak.outline.expect deleted file mode 100644 index 3c2619e..0000000 --- a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.outline.expect +++ /dev/null
@@ -1,15 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -import "org-dartlang-testcase:///augment_same_file.dart"; - -static field core::String _message /* from org-dartlang-testcase:///augment_same_file_lib.dart */; -static method main() → dynamic - ; -static method expectEquals(dynamic x, dynamic y) → dynamic - ; -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ foo() → core::String - ; -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ message(core::String variable) → void - ;
diff --git a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.transformed.expect b/pkg/front_end/testcases/macros/augment_same_file.dart.weak.transformed.expect deleted file mode 100644 index dfff5f2..0000000 --- a/pkg/front_end/testcases/macros/augment_same_file.dart.weak.transformed.expect +++ /dev/null
@@ -1,35 +0,0 @@ -library; -import self as self; -import "dart:core" as core; - -import "org-dartlang-testcase:///augment_same_file.dart"; - -static field core::String _message = "foo" /* from org-dartlang-testcase:///augment_same_file_lib.dart */; -static method main() → dynamic { - self::message = "bar"; - self::expectEquals(self::foo(), "augment2-get: augment1-get: augment2-set: augment1-set: bar"); -} -static method expectEquals(dynamic x, dynamic y) → dynamic { - if(!(x =={core::Object::==}{(core::Object) → core::bool} y)) { - throw "Unexpectedly received two unequal values: x=${x} y=${y}."; - } -} -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ foo() → core::String { - return "augment2-get: ${self::_#foo#augment1()}"; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ message(core::String value) → void { - self::_#message#augment1 = value; - self::_message = "augment2-set: ${self::_message}"; -} -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#foo#augment0() → core::String - return self::_message; -static method /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#foo#augment1() → core::String { - return "augment1-get: ${self::_#foo#augment0()}"; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#message#augment0(core::String variable) → void { - self::_message = variable; -} -static set /* from org-dartlang-testcase:///augment_same_file_lib.dart */ _#message#augment1(core::String value) → void { - self::_#message#augment0 = value; - self::_message = "augment1-set: ${self::_message}"; -}
diff --git a/pkg/front_end/testcases/null_aware_elements/constant_collections.dart.weak.transformed.expect b/pkg/front_end/testcases/null_aware_elements/constant_collections.dart.weak.transformed.expect deleted file mode 100644 index d33e8ec..0000000 --- a/pkg/front_end/testcases/null_aware_elements/constant_collections.dart.weak.transformed.expect +++ /dev/null
@@ -1,77 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -import self as self; -import "dart:core" as core; - -class Verifier extends core::Object /*hasConstConstructor*/ { - const constructor test1() → self::Verifier - : assert(core::identical(#C2, #C2)), super core::Object::•() - ; - const constructor test2() → self::Verifier - : assert(core::identical(#C3, #C3)), super core::Object::•() - ; -} -static const field core::int? expr1 = #C1; -static const field core::List<core::int> literal1 = #C2; -static const field core::String? expr2 = #C4; -static const field core::Set<core::String> literal2 = #C3; -static field self::Verifier test1 = #C5; -static field self::Verifier test2 = #C5; - -constants { - #C1 = 5 - #C2 = <core::int*>[#C1] - #C3 = <core::String*>{} - #C4 = null - #C5 = self::Verifier {} -} - -Extra constant evaluation status: -Evaluated: StaticInvocation @ org-dartlang-testcase:///constant_collections.dart:12:35 -> BoolConstant(true) -Evaluated: StaticInvocation @ org-dartlang-testcase:///constant_collections.dart:14:35 -> BoolConstant(true) -Extra constant evaluation: evaluated: 2, effectively constant: 2 - - -Constructor coverage from constants: -org-dartlang-testcase:///constant_collections.dart: -- Verifier.test1 (from org-dartlang-testcase:///constant_collections.dart:12:9) -- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) -- Verifier.test2 (from org-dartlang-testcase:///constant_collections.dart:14:9)
diff --git a/pkg/front_end/testcases/null_aware_elements/inference.dart.weak.transformed.expect b/pkg/front_end/testcases/null_aware_elements/inference.dart.weak.transformed.expect deleted file mode 100644 index b63dfe4..0000000 --- a/pkg/front_end/testcases/null_aware_elements/inference.dart.weak.transformed.expect +++ /dev/null
@@ -1,83 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -import self as self; -import "dart:core" as core; - -static method test1(core::int? x) → dynamic { - core::List<core::int> y1 = block { - final core::List<core::int> #t1 = core::_GrowableList::•<core::int>(0); - final core::int? #t2 = x; - if(!(#t2 == null)) - #t1.{core::List::add}{Invariant}(#t2{core::int}){(core::int) → void}; - } =>#t1; - core::List<core::int> y2 = block { - final core::List<core::int> #t3 = core::_GrowableList::_literal1<core::int>(1); - final core::int? #t4 = x; - if(!(#t4 == null)) - #t3.{core::List::add}{Invariant}(#t4{core::int}){(core::int) → void}; - } =>#t3; - core::List<core::num> y3 = block { - final core::List<core::num> #t5 = core::_GrowableList::_literal1<core::num>(1.0); - final core::num? #t6 = x; - if(!(#t6 == null)) - #t5.{core::List::add}{Invariant}(#t6{core::num}){(core::num) → void}; - } =>#t5; -} -static method test2(dynamic x) → dynamic { - core::List<core::String> y1 = block { - final core::List<core::String> #t7 = core::_GrowableList::•<core::String>(0); - final core::String? #t8 = x as{TypeError,ForDynamic} core::String?; - if(!(#t8 == null)) - #t7.{core::List::add}{Invariant}(#t8{core::String}){(core::String) → void}; - } =>#t7; - core::List<core::String> y2 = block { - final core::List<core::String> #t9 = core::_GrowableList::_literal1<core::String>(""); - final core::String? #t10 = x as{TypeError,ForDynamic} core::String?; - if(!(#t10 == null)) - #t9.{core::List::add}{Invariant}(#t10{core::String}){(core::String) → void}; - } =>#t9; - core::List<dynamic> y3 = block { - final core::List<dynamic> #t11 = core::_GrowableList::_literal1<dynamic>(""); - final dynamic #t12 = x; - if(!(#t12 == null)) - #t11.{core::List::add}{Invariant}(#t12){(dynamic) → void}; - } =>#t11; -}
diff --git a/pkg/front_end/testcases/null_aware_elements/simple_positive.dart.weak.transformed.expect b/pkg/front_end/testcases/null_aware_elements/simple_positive.dart.weak.transformed.expect deleted file mode 100644 index 41a8c4b..0000000 --- a/pkg/front_end/testcases/null_aware_elements/simple_positive.dart.weak.transformed.expect +++ /dev/null
@@ -1,141 +0,0 @@ -// -// Problems in component: -// -// sdk/lib/core/core.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/async/async.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/collection/collection.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/concurrent/concurrent.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/convert/convert.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/developer/developer.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/ffi/ffi.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/internal/internal.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/isolate/isolate.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/math/math.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/mirrors/mirrors.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/typed_data/typed_data.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/vmservice_io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/vmservice/vmservice.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/_internal/vm/bin/builtin.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/html/dartium/nativewrappers.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/io/io.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -// sdk/lib/cli/cli.dart: Error: Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety. -// -library; -import self as self; -import "dart:core" as core; -import "dart:collection" as col; - -static method foo1(core::int? x) → dynamic - return block { - final core::List<core::int> #t1 = core::_GrowableList::•<core::int>(0); - final core::int? #t2 = x; - if(!(#t2 == null)) - #t1.{core::List::add}{Invariant}(#t2{core::int}){(core::int) → void}; - } =>#t1; -static method foo2(core::String? x) → dynamic - return block { - final core::Set<core::String> #t3 = new col::_Set::•<core::String>(); - final core::String? #t4 = x; - if(!(#t4 == null)) - #t3.{core::Set::add}{Invariant}(#t4{core::String}){(core::String) → core::bool}; - } =>#t3; -static method foo3(core::bool? x, core::num y) → dynamic - return block { - final core::Map<core::bool, core::num> #t5 = <core::bool, core::num>{}; - final has-declared-initializer core::Map<core::bool, core::num>? #t6 = null; - if(!(#t6 == null)) - #t5.{core::Map::addAll}{Invariant}(#t6{core::Map<core::bool, core::num>}){(core::Map<core::bool, core::num>) → void}; - } =>#t5; -static method bar1(core::int? x) → dynamic - return block { - final core::List<core::int> #t7 = core::_GrowableList::•<core::int>(0); - final core::int? #t8 = x; - if(!(#t8 == null)) - #t7.{core::List::add}{Invariant}(#t8{core::int}){(core::int) → void}; - } =>#t7; -static method bar2(core::int? x, core::bool b) → dynamic - return block { - final core::Set<core::int> #t9 = new col::_Set::•<core::int>(); - if(b) { - final core::int? #t10 = x; - if(!(#t10 == null)) - #t9.{core::Set::add}{Invariant}(#t10{core::int}){(core::int) → core::bool}; - } - } =>#t9; -static method bar3(core::int? x) → dynamic - return block { - final core::Set<core::int> #t11 = new col::_Set::•<core::int>(); - { - synthesized core::Iterator<dynamic> :sync-for-iterator = core::_GrowableList::•<dynamic>(0).{core::Iterable::iterator}{core::Iterator<dynamic>}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic _ = :sync-for-iterator.{core::Iterator::current}{dynamic}; - { - final core::int? #t12 = x; - if(!(#t12 == null)) - #t11.{core::Set::add}{Invariant}(#t12{core::int}){(core::int) → core::bool}; - } - } - } - } =>#t11; -static method bar4(core::String x, core::bool? y) → dynamic - return block { - final core::Map<core::String, core::bool> #t13 = <core::String, core::bool>{}; - final has-declared-initializer core::Map<core::String, core::bool>? #t14 = null; - if(!(#t14 == null)) - #t13.{core::Map::addAll}{Invariant}(#t14{core::Map<core::String, core::bool>}){(core::Map<core::String, core::bool>) → void}; - } =>#t13; -static method bar5(core::int? x, core::num y) → dynamic - return block { - final core::Map<core::int, core::num> #t15 = <core::int, core::num>{}; - final has-declared-initializer core::Map<core::int, core::num>? #t16 = null; - if(!(#t16 == null)) - #t15.{core::Map::addAll}{Invariant}(#t16{core::Map<core::int, core::num>}){(core::Map<core::int, core::num>) → void}; - } =>#t15; -static method bar6(core::double? x, core::Symbol? y) → dynamic - return block { - final core::Map<core::double, core::Symbol> #t17 = <core::double, core::Symbol>{}; - final has-declared-initializer core::Map<core::double, core::Symbol>? #t18 = null; - if(!(#t18 == null)) - #t17.{core::Map::addAll}{Invariant}(#t18{core::Map<core::double, core::Symbol>}){(core::Map<core::double, core::Symbol>) → void}; - } =>#t17; -static method bar7(core::num? x, core::double? y, core::bool b) → dynamic - return block { - final core::Map<core::num, core::double> #t19 = <core::num, core::double>{}; - if(b) { - final has-declared-initializer core::Map<core::num, core::double>? #t20 = null; - if(!(#t20 == null)) - #t19.{core::Map::addAll}{Invariant}(#t20{core::Map<core::num, core::double>}){(core::Map<core::num, core::double>) → void}; - } - } =>#t19; -static method bar8(core::num? x, core::double? y) → dynamic - return block { - final core::Map<core::num, core::double> #t21 = <core::num, core::double>{}; - { - synthesized core::Iterator<dynamic> :sync-for-iterator = core::_GrowableList::•<dynamic>(0).{core::Iterable::iterator}{core::Iterator<dynamic>}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic _ = :sync-for-iterator.{core::Iterator::current}{dynamic}; - { - final has-declared-initializer core::Map<core::num, core::double>? #t22 = null; - if(!(#t22 == null)) - #t21.{core::Map::addAll}{Invariant}(#t22{core::Map<core::num, core::double>}){(core::Map<core::num, core::double>) → void}; - } - } - } - } =>#t21;
diff --git a/pkg/front_end/testcases/weak.status b/pkg/front_end/testcases/weak.status deleted file mode 100644 index b9f924e..0000000 --- a/pkg/front_end/testcases/weak.status +++ /dev/null
@@ -1,316 +0,0 @@ -# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - -# Status file for the weak_suite.dart test suite. - -# Macros are in development -macros/scope_access: SemiFuzzFailure - -# Assert failure -general/error_recovery/issue_39202.crash: SemiFuzzAssertFailure - -# BAD ONES: -class_modifiers/issue52115/main: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/53109 -class_modifiers/issue52316/main: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/53109 -const_functions/const_functions_switch_statements: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/53111 - -# POSSIBLY BAD ONES -dart2js/issue51823: SemiFuzzFailure # Inequivalent nodes on recompile - https://github.com/dart-lang/sdk/issues/53119. -macros/library_members_import: SemiFuzzFailure # Inequivalent nodes on recompile - https://github.com/dart-lang/sdk/issues/53119. - -# INCREMENTAL COMPILATION ERRORS -inline_class/annotations: SemiFuzzFailure # @methods::A| is already bound to Reference - https://github.com/dart-lang/sdk/issues/53117. -inline_class/constructor_formal_parameters: SemiFuzzFailure # @methods::I| is already bound to Reference - https://github.com/dart-lang/sdk/issues/53117. -inline_class/external: SemiFuzzFailure # @methods::A| is already bound to Reference - https://github.com/dart-lang/sdk/issues/53117. -inline_class/issue51299: SemiFuzzFailure # @methods::I|set#i is already bound to Reference - https://github.com/dart-lang/sdk/issues/53117. - -# EXPECTED FAILURES DUE TO PRIVACY ETC: -records/issue51940: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -patterns/private_names_in_object_patterns: semiFuzzFailureOnForceRebuildBodies # can't match on private field in split out library. -patterns/issue51009: semiFuzzFailureOnForceRebuildBodies # private extension method. -patterns/exhaustiveness/issue52048: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -dart2js/native: semiFuzzFailureOnForceRebuildBodies # errors in the input means it can't force split. -dart2js/sealed_class: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -dartdevc/inference_update_2/issue52452: semiFuzzFailureOnForceRebuildBodies # privacy. -dartdevc/redirecting_factory_from_dill/main: semiFuzzFailureOnForceRebuildBodies # privacy. -dartdevc/redirecting_factory_from_dill/main.no_link: semiFuzzFailureOnForceRebuildBodies # privacy. -extension_types/inherited_representation_field: semiFuzzFailureOnForceRebuildBodies # privacy. -extension_types/issue53446: semiFuzzFailureOnForceRebuildBodies # privacy. -extensions/nullable_access: semiFuzzFailureOnForceRebuildBodies # private extension method. -general/patch_annotations/main: semiFuzzFailureOnForceRebuildBodies # 'dart:test' stuff. -general/redirecting_factory_from_dill/main: semiFuzzFailureOnForceRebuildBodies # privacy. -general/redirecting_factory_from_dill/main.no_link: semiFuzzFailureOnForceRebuildBodies # privacy. -general/redirection/main: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_2/abstract_field: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_2/external_field: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_2/issue52452: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_3/if_null_assignment_explicit_extension_index_expression_test: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_3/if_null_assignment_explicit_extension_null_aware_index_expression_test: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_3/if_null_assignment_implicit_extension_index_expression_test: semiFuzzFailureOnForceRebuildBodies # privacy. -inference_update_3/if_null_assignment_implicit_extension_null_aware_index_expression_test: semiFuzzFailureOnForceRebuildBodies # privacy. -macros/macro_class: SemiFuzzFailure # Declares macros. -patterns/exhaustiveness/extension_types: semiFuzzFailureOnForceRebuildBodies # uses sealed -patterns/exhaustiveness/issue51957: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -patterns/exhaustiveness/issue52041: semiFuzzFailureOnForceRebuildBodies # can't match on private field in split out library. -patterns/exhaustiveness/unsound_cast_3_2: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -nnbd_mixed/exhaustiveness: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -patterns/extension_access: semiFuzzFailureOnForceRebuildBodies # private extension method. -patterns/extension_tear_off: semiFuzzFailureOnForceRebuildBodies # private extension method. -patterns/issue55310: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -patterns/pattern_matching: semiFuzzFailureOnForceRebuildBodies # can't split because of sealed class. -inference_update_2/call_invocation_with_hoisting: semiFuzzFailureOnForceRebuildBodies # privacy -inference_update_2/cascaded_field_promotion: semiFuzzFailureOnForceRebuildBodies # privacy -records/nullable_access_extension: semiFuzzFailureOnForceRebuildBodies # unnamed extension - -# FUZZ FRAMEWORK FAILURES -dart2js/tear_off_patch/main: SemiFuzzFailure # incremental compiler doesn't custom dart: libraries as dependencies on recompilation -general/script_tag_in_part_file: SemiFuzzFailure # `#!/usr/bin/env dart` goes away - -# UNSORTED ONES: -coverage/static2_test: TypeCheckError -constructor_tearoffs/explicit_instantiation: SemiFuzzFailure -general/bad_import: SemiFuzzCrash # missing end token on import -macros/scope_access: SemiFuzzCrash - -const_functions/const_functions_list: SemiFuzzCrash - -dart2js/mixin_super/main: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/49339 -dart2js/tear_off_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/constants/with_unevaluated_agnostic/various_2: SemiFuzzFailure # Looks similar to https://dart-review.googlesource.com/c/sdk/+/242441 -general/fallthrough: RuntimeError # Fallthrough cases in switch. -general/issue48765: semiFuzzFailureOnForceRebuildBodies # private class -general/mixin_from_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/multiple_class_patches/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/tear_off_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/view_class_declaration: SemiFuzzFailure # "view" doesn't appear to get into the reordering (experimental feature). -general/with_dependencies/issue_43084/issue_43084: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242543 -inference_update_1/horizontal_inference_extension_method: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/245004 -inference_update_1/horizontal_inference_extension_method: semiFuzzFailureOnForceRebuildBodies # Errors on split -inference_update_2/basic_field_promotion: semiFuzzFailureOnForceRebuildBodies # Private fields. -inference_update_2/disabled: semiFuzzFailureOnForceRebuildBodies # Private fields. -inference_update_2/field_promotion_and_no_such_method: semiFuzzFailureOnForceRebuildBodies # Private fields. -inference_update_2/field_promotion_name_conflicts: semiFuzzFailureOnForceRebuildBodies # Private fields. -late_lowering/private_members: SemiFuzzFailure # Looks similar to https://dart-review.googlesource.com/c/sdk/+/242285 -macros/augment_concrete: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/49414 -macros/extend_augmented: SemiFuzzFailure # Similar to https://github.com/dart-lang/sdk/issues/49414 -macros/multiple_augment_class: SemiFuzzFailure # https://github.com/dart-lang/sdk/issues/49990 -macros/multiple_imports: SemiFuzzFailure # probably augment imports that isn't split correctly. -nnbd/constants: SemiFuzzFailure # Looks similar to https://dart-review.googlesource.com/c/sdk/+/242441 -nnbd_mixed/hierarchy/in_dill_out_in/in_out_in: SemiFuzzFailure # lots of stuff --- not digging in for now -nnbd_mixed/hierarchy/in_out_dill_in/in_out_in: SemiFuzzFailure # lots of stuff --- not digging in for now -nnbd_mixed/hierarchy/in_out_in: SemiFuzzFailure # lots of stuff --- not digging in for now -nnbd_mixed/issue43988/main.no_link: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242540 and https://dart-review.googlesource.com/c/sdk/+/242446 -nnbd_mixed/issue43988/main: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242540 and https://dart-review.googlesource.com/c/sdk/+/242446 -nnbd_mixed/member_inheritance_from_opt_in: SemiFuzzFailure # https://dart-review.googlesource.com/c/sdk/+/242446 -nnbd_mixed/mixed_mixin: SemiFuzzFailure - -dart2js/flutter_issue94561/main: SemiFuzzFailure -dart2js/flutter_issue94561/main.no_link: SemiFuzzFailure -dart2js/mixin_from_opt_in/main: SemiFuzzFailure -dart2js/mixin_from_opt_in/main.no_link: SemiFuzzFailure -general/error_recovery/issue_39058_prime.crash: SemiFuzzFailure -general/error_recovery/issue_39058.crash: SemiFuzzFailure -general/platform_invalid_uris/main: SemiFuzzFailure -general/supported_libraries/main: SemiFuzzFailure -nnbd_mixed/mixin_from_opt_in/main: SemiFuzzFailure -nnbd_mixed/mixin_from_opt_in/main.no_link: SemiFuzzFailure -regress/utf_16_le_content.crash: SemiFuzzCrash -static_field_lowering/opt_in: SemiFuzzFailure - -# These tests have "privacy issues" and isn't compatible with splitting files (fuzzing): -dart2js/mixin_default_values/main: semiFuzzFailureOnForceRebuildBodies # private method -dartdevc/factory_patch/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -dartdevc/private_covariant: semiFuzzFailureOnForceRebuildBodies # private method in class -extensions/internal_resolution: semiFuzzFailureOnForceRebuildBodies # unnamed extensions -extensions/issue40816: semiFuzzFailureOnForceRebuildBodies # unnamed extension -extensions/on_function_type: semiFuzzFailureOnForceRebuildBodies # unnamed extension -extensions/unnamed_extensions: semiFuzzFailureOnForceRebuildBodies # unnamed extension -general/bug33099: semiFuzzFailureOnForceRebuildBodies # private class -general/closure: semiFuzzFailureOnForceRebuildBodies # private field -general/constants/rudimentary_test_01: semiFuzzFailureOnForceRebuildBodies # private method -general/constants/with_unevaluated_agnostic/rudimentary_test_01: semiFuzzFailureOnForceRebuildBodies # private method -general/constructor_const_inference: semiFuzzFailureOnForceRebuildBodies # private class -general/issue45101/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/issue47036: semiFuzzFailureOnForceRebuildBodies # private class -general/issue48548: semiFuzzFailureOnForceRebuildBodies # private field -general/nested_lib_spec/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -general/private_members: semiFuzzFailureOnForceRebuildBodies # private class (etc). -general/private_method_tearoff: semiFuzzFailureOnForceRebuildBodies # private method in class -general/redirecting_factory_const_inference: semiFuzzFailureOnForceRebuildBodies # private class -general/store_load: semiFuzzFailureOnForceRebuildBodies # private field in class -general/typedef: semiFuzzFailureOnForceRebuildBodies # private typedef -inference/downwards_inference_on_list_literals_infer_if_value_types_match_context: semiFuzzFailureOnForceRebuildBodies # private field -late_lowering/injected_late_field_checks/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here - -late_lowering/issue41436/issue41436: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -late_lowering/issue41922: semiFuzzFailureOnForceRebuildBodies # private field -late_lowering/private_members: semiFuzzFailureOnForceRebuildBodies # private class (etc) -macros/inject_constructor: semiFuzzFailureOnForceRebuildBodies # Macro injection --- think it might introduce a class in a file? -nnbd_mixed/issue46518: semiFuzzFailureOnForceRebuildBodies # private method -nnbd_mixed/no_null_shorting_explicit_extension: semiFuzzFailureOnForceRebuildBodies # private field in class -nnbd_mixed/no_null_shorting_extension: semiFuzzFailureOnForceRebuildBodies # private field in class -nnbd_mixed/nullable_extension_on_opt_out: semiFuzzFailureOnForceRebuildBodies # unnamed extension -nnbd_mixed/object_bound_redirecting_factory/main: semiFuzzFailureOnForceRebuildBodies # private constructor -nnbd/injected_late_field_checks/main: semiFuzzFailureOnForceRebuildBodies # needs custom libraries.json (and platform?) not setup here -nnbd/issue42504: semiFuzzFailureOnForceRebuildBodies # private class -nnbd/issue43918: semiFuzzFailureOnForceRebuildBodies # private class -nnbd/issue44595: semiFuzzFailureOnForceRebuildBodies # unnamed extension -nnbd/nullable_extension: semiFuzzFailureOnForceRebuildBodies # unnamed extension -nnbd/nullable_setter: semiFuzzFailureOnForceRebuildBodies # unnamed extension -no_such_method_forwarders/mixin_nsm: TypeCheckError -none/mixin_super: semiFuzzFailureOnForceRebuildBodies # has private name mixin -regress/issue_39682: semiFuzzFailureOnForceRebuildBodies # has private method - -constructor_tearoffs/call_instantiation: TypeCheckError -enhanced_enums/declared_hashcode: TypeCheckError -enhanced_enums/declared_index: TypeCheckError -enhanced_enums/simple_mixins: RuntimeError -extension_types/access_setter_as_getter: ExpectationFileMismatchSerialized # Expected. -extension_types/call_not_get: ExpectationFileMismatchSerialized # Expected. -extension_types/extension_on_nullable: ExpectationFileMismatchSerialized # Expected. -extension_types/issue45775: ExpectationFileMismatchSerialized # Expected. -extension_types/non_simple_many_libs_same_name_cycle: ExpectationFileMismatchSerialized -extension_types/show_and_run_ceil: ExpectationFileMismatchSerialized # Expected. -extension_types/simple: ExpectationFileMismatchSerialized # Expected. -extension_types/simple_getter_resolution: ExpectationFileMismatchSerialized # Expected. -extension_types/simple_method_resolution: ExpectationFileMismatchSerialized # Expected. -extension_types/simple_operator_resolution: ExpectationFileMismatchSerialized # Expected. -extension_types/simple_setter_resolution: ExpectationFileMismatchSerialized # Expected. -extension_types/simple_show_hide: ExpectationFileMismatchSerialized # Expected. -extension_types/type_variable_in_static_context: ExpectationFileMismatchSerialized # Expected. -extension_types/with_dependencies/issue53209_1/main: SemiFuzzFailure -extensions/extension_setter_error: TypeCheckError -extensions/instance_access_of_static: RuntimeError -extensions/invalid_explicit_access: RuntimeError -extensions/static_access_of_instance: RuntimeError -general/abstract_members: TypeCheckError -general/accessors: RuntimeError -general/await_in_non_async: RuntimeError # Expected. -general/bounded_implicit_instantiation: TypeCheckError -general/bug30695: TypeCheckError -general/call: RuntimeError -general/cascade: RuntimeError -general/constructor_initializer_invalid: RuntimeError # Fails execution after recovery -general/continue_label_invalid: RuntimeError -general/covariant_field: TypeCheckError -general/duplicated_field_initializer: RuntimeError -general/error_locations/error_location_01: RuntimeError -general/error_locations/error_location_02: RuntimeError -general/error_locations/error_location_03: RuntimeError -general/error_recovery/empty_await_for: RuntimeError -general/error_recovery/empty_for: RuntimeError -general/expressions: RuntimeError -general/getter_vs_setter_type: TypeCheckError -general/hierarchy/conflict: TypeCheckError -general/hierarchy/duplicates: TypeCheckError -general/hierarchy/forwarding_semi_stub_field: TypeCheckError -general/hierarchy/forwarding_semi_stub_method: TypeCheckError -general/hierarchy/forwarding_semi_stub_setter: TypeCheckError -general/hierarchy/getter_setter: TypeCheckError -general/hierarchy/mix_in_override: TypeCheckError -general/hierarchy/override: TypeCheckError -general/implement_semi_stub: TypeCheckError -general/infer_field_from_multiple2: TypeCheckError -general/infer_field_from_multiple: TypeCheckError -general/invalid_operator: TypeCheckError -general/invalid_operator_override: TypeCheckError -general/invocations: TypeCheckError -general/issue37776: RuntimeError -general/issue41210a: TypeCheckError -general/issue41210b/issue41210.no_link: TypeCheckError -general/issue41210b/issue41210: TypeCheckError -general/issue47994b: RuntimeError # Assertions are not enabled -general/issue_46886: RuntimeError -general/micro: RuntimeError -general/mixin_application_override: ExpectationFileMismatch # Too many errors. -general/mixin_application_override: TypeCheckError -general/mixin_constructors_with_default_values: RuntimeError # Expected -general/mixin_covariant2: RuntimeError -general/operator_method_not_found: RuntimeError # Expected -general/optional: RuntimeError -general/override_check_accessor_after_inference: TypeCheckError # Issue #31620 -general/override_check_accessor_basic: TypeCheckError # Issue #31620 -general/override_check_accessor_with_covariant_modifier: TypeCheckError # Issue #31620 -general/override_check_after_inference: TypeCheckError # Issue #31620 -general/override_check_basic: TypeCheckError # Issue #31620 -general/override_check_with_covariant_modifier: TypeCheckError # Issue #31620 -general/override_setter_with_field: TypeCheckError -general/redirecting_factory: RuntimeError -general/spread_collection: RuntimeError -general/supertype_conflict: TypeCheckError -general/type_variable_as_super: RuntimeError -general/void_methods: RuntimeError -general/with_dependencies/issue_43084/issue_43084: RuntimeError -inference/do_not_infer_overridden_fields_that_explicitly_say_dynamic_infer: TypeCheckError -inference/downwards_inference_for_each: RuntimeError # Issue #36382 -inference/downwards_inference_on_list_literals_infer_downwards: RuntimeError -inference/generic_methods_do_not_infer_invalid_override_of_generic_method: TypeCheckError -inference/generic_methods_handle_override_of_non_generic_with_generic: TypeCheckError -inference/infer_method_missing_params: TypeCheckError -inference/infer_type_regardless_of_declaration_order_or_cycles: RuntimeError -inference/infer_types_on_generic_instantiations_4: RuntimeError -inference/infer_types_on_generic_instantiations_infer: TypeCheckError -inference/instantiate_tearoff_of_call: TypeCheckError -inference/mixin_inference_outwards_3: TypeCheckError -inference/mixin_inference_outwards_4: TypeCheckError -inference/mixin_inference_unification_1: TypeCheckError -inference/mixin_inference_unification_2: TypeCheckError -inference/override_equals: RuntimeError -late_lowering/covariant_late_field: TypeCheckError -nnbd/covariant_late_field: TypeCheckError -nnbd/getter_vs_setter_type: TypeCheckError -nnbd/issue42603: TypeCheckError -nnbd/no_support_for_old_null_aware_index_access_syntax: RuntimeError # Expected. -rasta/abstract_constructor: RuntimeError -rasta/bad_constructor_redirection: RuntimeError -rasta/bad_continue: RuntimeError -rasta/bad_default_constructor: RuntimeError -rasta/bad_explicit_super_constructor: RuntimeError -rasta/bad_implicit_super_constructor: RuntimeError -rasta/bad_interpolation: RuntimeError -rasta/bad_redirection: RuntimeError -rasta/bad_setter_initializer: RuntimeError -rasta/breaking_bad: RuntimeError -rasta/class_hierarchy: RuntimeError -rasta/constant_get_and_invoke: RuntimeError -rasta/generic_factory: RuntimeError -rasta/issue_000001: RuntimeError -rasta/issue_000031: RuntimeError -rasta/issue_000032: RuntimeError -rasta/issue_000034: RuntimeError -rasta/issue_000036: RuntimeError -rasta/issue_000041: RuntimeError -rasta/issue_000042: RuntimeError -rasta/issue_000044: RuntimeError -rasta/malformed_const_constructor: RuntimeError -rasta/malformed_function: RuntimeError -rasta/parser_error: RuntimeError -rasta/static: RuntimeError -rasta/super: RuntimeError -rasta/super_mixin: RuntimeError -rasta/try_label: RuntimeError -rasta/type_literals: RuntimeError -rasta/typedef: RuntimeError -rasta/unresolved: RuntimeError -rasta/unresolved_constructor: RuntimeError -rasta/unresolved_for_in: RuntimeError -regress/issue_29976: RuntimeError # Tests runtime behavior of error recovery. -regress/issue_29982: RuntimeError # Tests runtime behavior of error recovery. -regress/issue_32972: RuntimeError -regress/issue_33452: RuntimeError # Test has an intentional error -regress/issue_34225: RuntimeError -regress/issue_34563: RuntimeError # Test execution after recovery -regress/issue_35258: RuntimeError # Expected -regress/issue_35259: RuntimeError # Expected -regress/issue_35260: RuntimeError # Expected -regress/issue_35266: RuntimeError # Expected -regress/issue_37285: RuntimeError -regress/issue_39091_2: RuntimeError -runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast: RuntimeError -runtime_checks_new/mixin_forwarding_stub_getter: TypeCheckError -set_literals/disambiguation_rule: RuntimeError -value_class/copy_with_call_sites: RuntimeError # Expected -value_class/simple: RuntimeError # Expected -value_class/value_extends_non_value: RuntimeError # Expected -value_class/value_implements_non_value: RuntimeError # Expected
diff --git a/pkg/front_end/testing.json b/pkg/front_end/testing.json index e1934f5..0e01477 100644 --- a/pkg/front_end/testing.json +++ b/pkg/front_end/testing.json
@@ -83,70 +83,6 @@ ] }, { - "name": "weak", - "kind": "Chain", - "source": "test/weak_suite.dart", - "root": "testcases/", - "status": "testcases/weak.status", - "includeEndsWith": [ - ".dart", - ".crash_dart" - ], - "exclude": [ - "/testcases/.*_lib[0-9]*\\.dart$", - "/testcases/.*_part[0-9]*\\.dart$", - "/testcases/agnostic/", - "/testcases/class_modifiers/", - "/testcases/const_functions/", - "/testcases/constructor_tearoffs/", - "/testcases/coverage/", - "/testcases/dart2wasm/", - "/testcases/dartdevc/", - "/testcases/dartino/", - "/testcases/enhanced_enums/", - "/testcases/expression/", - "/testcases/extension_types/", - "/testcases/extensions/", - "/testcases/general/", - "/testcases/generic_metadata/", - "/testcases/getter_setter_error/", - "/testcases/implicit_getter_calls/", - "/testcases/incremental/", - "/testcases/inference_new/", - "/testcases/inference_update_1/", - "/testcases/inference_update_2/", - "/testcases/inference_update_3/", - "/testcases/inference/", - "/testcases/inference_using_bounds/", - "/testcases/instantiate_to_bound/", - "/testcases/late_lowering/", - "/testcases/late_lowering_sentinel/", - "/testcases/macros/", - "/testcases/named_arguments_anywhere/", - "/testcases/nnbd/", - "/testcases/no_such_method_forwarders/", - "/testcases/none/", - "/testcases/nonfunction_type_aliases/", - "/testcases/null_aware_elements/", - "/testcases/offsets/", - "/testcases/patterns/", - "/testcases/rasta/", - "/testcases/records/", - "/testcases/regress/", - "/testcases/runtime_checks/", - "/testcases/runtime_checks_new/", - "/testcases/sealed_class/", - "/testcases/set_literals/", - "/testcases/static_field_lowering/", - "/testcases/super_parameters/", - "/testcases/triple_shift/", - "/testcases/unified_collections/", - "/testcases/unscheduled_experiments/", - "/testcases/variance/", - "/testcases/wildcard_variables/" - ] - }, - { "name": "incremental_dartino", "kind": "Chain", "source": "test/incremental_dartino_suite.dart",
diff --git a/pkg/front_end/tool/update_expectations.dart b/pkg/front_end/tool/update_expectations.dart index cac515e..33cbb97 100644 --- a/pkg/front_end/tool/update_expectations.dart +++ b/pkg/front_end/tool/update_expectations.dart
@@ -5,9 +5,8 @@ import 'cfe.dart' as cfe; const List<String> standardSuites = <String>[ - 'weak', - 'outline', 'strong', + 'outline', 'modular', 'textual_outline', ]; @@ -20,7 +19,7 @@ Future<void> runStandardSuites([List<String>? args]) async { // Assert that 'strong' is the first suite - we use the assumption below. - assert(standardSuites.first == 'weak', "Suite 'weak' most be the first."); + assert(standardSuites.first == 'strong', "Suite 'strong' most be the first."); List<String> testingArguments = []; for (String suite in standardSuites) {