From 54906759b973952e781c770249f6d9b780d65921 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 27 Sep 2022 21:20:35 +0000 Subject: [PATCH] Don't delegate foreign private names to `noSuchMethod`. If a concrete class implements an interface containing a name that's private to a different library, any attempt to invoke that name will result in an exception getting thrown. Previously, such attempts would result in the call being diverted to noSuchMethod. This change closes a loophole in Dart's privacy system, and paves the way for a future implementation of promotion for private final fields (see https://github.com/dart-lang/language/issues/2020). Bug: https://github.com/dart-lang/sdk/issues/49687 Change-Id: Ie55805e0fc77dc39713761a80a42c28bd0504722 Tested: language tests Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255640 Reviewed-by: Johnni Winther Commit-Queue: Paul Berry Reviewed-by: Lasse Nielsen --- CHANGELOG.md | 15 + pkg/dart2wasm/lib/target.dart | 2 +- .../fasta/source/source_class_builder.dart | 57 ++- .../lib/src/fasta/source/source_loader.dart | 2 +- .../test/spell_checking_list_code.txt | 2 + .../test/spell_checking_list_tests.txt | 7 + ...age_type_variable.dart.weak.outline.expect | 18 +- ...enum_as_supertype_error.dart.strong.expect | 20 +- ...rtype_error.dart.strong.transformed.expect | 20 +- .../enum_as_supertype_error.dart.weak.expect | 20 +- ...s_supertype_error.dart.weak.modular.expect | 20 +- ...s_supertype_error.dart.weak.outline.expect | 60 +-- ...pertype_error.dart.weak.transformed.expect | 20 +- .../abstract_members.dart.weak.outline.expect | 56 +-- ...th_no_such_method.dart.weak.outline.expect | 8 +- ..._method_forwarder.dart.weak.outline.expect | 16 +- ...uch_method_private_setter.dart.weak.expect | 8 +- ...od_private_setter.dart.weak.modular.expect | 8 +- ...od_private_setter.dart.weak.outline.expect | 24 +- ...rivate_setter.dart.weak.transformed.expect | 8 +- .../general/nsm_covariance.dart.weak.expect | 16 +- .../nsm_covariance.dart.weak.modular.expect | 16 +- .../nsm_covariance.dart.weak.outline.expect | 18 +- ...sm_covariance.dart.weak.transformed.expect | 16 +- .../private_method_tearoff.dart.weak.expect | 4 +- ...te_method_tearoff.dart.weak.modular.expect | 4 +- ...te_method_tearoff.dart.weak.outline.expect | 14 +- ...ethod_tearoff.dart.weak.transformed.expect | 4 +- .../super_nsm.dart.weak.outline.expect | 8 +- ...ge_but_changed_type_02.yaml.world.1.expect | 16 +- ...ge_but_changed_type_02.yaml.world.2.expect | 16 +- .../no_outline_change_16.yaml.world.1.expect | 16 +- .../no_outline_change_16.yaml.world.2.expect | 16 +- .../inference/future_then.dart.weak.expect | 8 +- .../future_then.dart.weak.modular.expect | 8 +- .../future_then.dart.weak.outline.expect | 34 +- .../future_then.dart.weak.transformed.expect | 8 +- .../inference/future_then_2.dart.weak.expect | 8 +- .../future_then_2.dart.weak.modular.expect | 8 +- .../future_then_2.dart.weak.outline.expect | 34 +- ...future_then_2.dart.weak.transformed.expect | 8 +- .../inference/future_then_3.dart.weak.expect | 8 +- .../future_then_3.dart.weak.modular.expect | 8 +- .../future_then_3.dart.weak.outline.expect | 34 +- ...future_then_3.dart.weak.transformed.expect | 8 +- .../inference/future_then_4.dart.weak.expect | 8 +- .../future_then_4.dart.weak.modular.expect | 8 +- .../future_then_4.dart.weak.outline.expect | 34 +- ...future_then_4.dart.weak.transformed.expect | 8 +- .../inference/future_then_5.dart.weak.expect | 8 +- .../future_then_5.dart.weak.modular.expect | 8 +- .../future_then_5.dart.weak.outline.expect | 34 +- ...future_then_5.dart.weak.transformed.expect | 8 +- .../inference/future_then_6.dart.weak.expect | 8 +- .../future_then_6.dart.weak.modular.expect | 8 +- .../future_then_6.dart.weak.outline.expect | 34 +- ...future_then_6.dart.weak.transformed.expect | 8 +- .../future_then_conditional2.dart.weak.expect | 8 +- ...then_conditional2.dart.weak.modular.expect | 8 +- ...then_conditional2.dart.weak.outline.expect | 34 +- ..._conditional2.dart.weak.transformed.expect | 8 +- ...uture_then_conditional2_2.dart.weak.expect | 8 +- ...en_conditional2_2.dart.weak.modular.expect | 8 +- ...en_conditional2_2.dart.weak.outline.expect | 34 +- ...onditional2_2.dart.weak.transformed.expect | 8 +- ...uture_then_conditional2_3.dart.weak.expect | 8 +- ...en_conditional2_3.dart.weak.modular.expect | 8 +- ...en_conditional2_3.dart.weak.outline.expect | 34 +- ...onditional2_3.dart.weak.transformed.expect | 8 +- ...uture_then_conditional2_4.dart.weak.expect | 8 +- ...en_conditional2_4.dart.weak.modular.expect | 8 +- ...en_conditional2_4.dart.weak.outline.expect | 34 +- ...onditional2_4.dart.weak.transformed.expect | 8 +- ...uture_then_conditional2_5.dart.weak.expect | 8 +- ...en_conditional2_5.dart.weak.modular.expect | 8 +- ...en_conditional2_5.dart.weak.outline.expect | 34 +- ...onditional2_5.dart.weak.transformed.expect | 8 +- ...uture_then_conditional2_6.dart.weak.expect | 8 +- ...en_conditional2_6.dart.weak.modular.expect | 8 +- ...en_conditional2_6.dart.weak.outline.expect | 34 +- ...onditional2_6.dart.weak.transformed.expect | 8 +- .../future_then_ifNull2.dart.weak.expect | 8 +- ...ture_then_ifNull2.dart.weak.modular.expect | 8 +- ...ture_then_ifNull2.dart.weak.outline.expect | 34 +- ..._then_ifNull2.dart.weak.transformed.expect | 8 +- .../future_then_upwards.dart.weak.expect | 8 +- ...ture_then_upwards.dart.weak.modular.expect | 8 +- ...ture_then_upwards.dart.weak.outline.expect | 34 +- ..._then_upwards.dart.weak.transformed.expect | 8 +- .../future_then_upwards_2.dart.weak.expect | 8 +- ...re_then_upwards_2.dart.weak.modular.expect | 8 +- ...re_then_upwards_2.dart.weak.outline.expect | 34 +- ...hen_upwards_2.dart.weak.transformed.expect | 8 +- .../future_then_upwards_3.dart.weak.expect | 8 +- ...re_then_upwards_3.dart.weak.modular.expect | 8 +- ...re_then_upwards_3.dart.weak.outline.expect | 34 +- ...hen_upwards_3.dart.weak.transformed.expect | 8 +- ..._union_async_conditional2.dart.weak.expect | 8 +- ...sync_conditional2.dart.weak.modular.expect | 8 +- ...sync_conditional2.dart.weak.outline.expect | 34 +- ..._conditional2.dart.weak.transformed.expect | 8 +- ...ion_async_conditional_2_2.dart.weak.expect | 8 +- ...c_conditional_2_2.dart.weak.modular.expect | 8 +- ...c_conditional_2_2.dart.weak.outline.expect | 34 +- ...nditional_2_2.dart.weak.transformed.expect | 8 +- .../future_union_downwards.dart.weak.expect | 8 +- ...e_union_downwards.dart.weak.modular.expect | 8 +- ...e_union_downwards.dart.weak.outline.expect | 34 +- ...ion_downwards.dart.weak.transformed.expect | 8 +- .../future_union_downwards_2.dart.weak.expect | 8 +- ...union_downwards_2.dart.weak.modular.expect | 8 +- ...union_downwards_2.dart.weak.outline.expect | 34 +- ...n_downwards_2.dart.weak.transformed.expect | 8 +- .../future_union_downwards_3.dart.weak.expect | 8 +- ...union_downwards_3.dart.weak.modular.expect | 8 +- ...union_downwards_3.dart.weak.outline.expect | 34 +- ...n_downwards_3.dart.weak.transformed.expect | 8 +- .../future_union_downwards_4.dart.weak.expect | 8 +- ...union_downwards_4.dart.weak.modular.expect | 8 +- ...union_downwards_4.dart.weak.outline.expect | 34 +- ...n_downwards_4.dart.weak.transformed.expect | 8 +- .../issue41436c.dart.strong.expect | 8 +- ...issue41436c.dart.strong.transformed.expect | 8 +- .../issue41436c/issue41436c.dart.weak.expect | 16 +- .../issue41436c.dart.weak.modular.expect | 16 +- .../issue41436c.dart.weak.outline.expect | 46 +- .../issue41436c.dart.weak.transformed.expect | 16 +- .../nnbd/issue42546.dart.strong.expect | 10 +- .../issue42546.dart.strong.transformed.expect | 10 +- .../nnbd/issue42546.dart.weak.expect | 10 +- .../nnbd/issue42546.dart.weak.modular.expect | 10 +- .../nnbd/issue42546.dart.weak.outline.expect | 40 +- .../issue42546.dart.weak.transformed.expect | 10 +- ...erited_implements.dart.weak.outline.expect | 16 +- .../mixin_from_dill/main.dart.weak.expect | 32 +- .../main.dart.weak.outline.expect | 8 +- .../main.dart.weak.transformed.expect | 32 +- .../mixin_from_dill/opt_in_lib1.dart | 8 +- .../no_such_method.dart.weak.outline.expect | 220 +++++----- .../mock_http_headers.dart.weak.expect | 2 +- ...mock_http_headers.dart.weak.modular.expect | 2 +- ...mock_http_headers.dart.weak.outline.expect | 10 +- ..._http_headers.dart.weak.transformed.expect | 2 +- ...essors_from_field.dart.weak.outline.expect | 14 +- ...ld_arent_mixed_in.dart.weak.outline.expect | 14 +- ...field_one_defined.dart.weak.outline.expect | 14 +- ...with_substitution.dart.weak.outline.expect | 14 +- ...ace_nsm_inherited.dart.weak.outline.expect | 8 +- ...fferent_signature.dart.weak.outline.expect | 6 +- ...mixin_application.dart.weak.outline.expect | 8 +- ...t_argument_values.dart.weak.outline.expect | 14 +- ...d_abstract_method.dart.weak.outline.expect | 8 +- .../forwarder_propagation.dart.weak.expect | 20 +- ...arder_propagation.dart.weak.modular.expect | 20 +- ...arder_propagation.dart.weak.outline.expect | 80 ++-- ...r_propagation.dart.weak.transformed.expect | 20 +- ...ssumed_from_mixin.dart.weak.outline.expect | 16 +- ...ace_with_concrete.dart.weak.outline.expect | 8 +- ...nterface_with_nsm.dart.weak.outline.expect | 16 +- ..._abstract_setters.dart.weak.outline.expect | 14 +- ..._abstract_classes.dart.weak.outline.expect | 8 +- ...act_classes_chain.dart.weak.outline.expect | 8 +- .../private.dart.weak.expect | 8 +- .../private.dart.weak.modular.expect | 8 +- .../private.dart.weak.outline.expect | 26 +- .../private.dart.weak.transformed.expect | 8 +- .../private_same.dart.weak.outline.expect | 8 +- ...ubst_on_forwarder.dart.weak.outline.expect | 8 +- ...ce_sound_variance.dart.weak.outline.expect | 26 +- pkg/kernel/lib/core_types.dart | 4 +- pkg/vm/lib/target/vm.dart | 2 +- .../regress_flutter81068.dart.expect | 6 +- ..._such_method_restriction_disabled_lib.dart | 103 +++++ ...such_method_restriction_disabled_test.dart | 413 ++++++++++++++++++ ...o_such_method_restriction_enabled_lib.dart | 101 +++++ ..._such_method_restriction_enabled_test.dart | 413 ++++++++++++++++++ ...h_method_restriction_stack_trace_lib1.dart | 9 + ...h_method_restriction_stack_trace_lib2.dart | 20 + ...h_method_restriction_stack_trace_test.dart | 28 ++ .../private_name_implementation_test.dart | 1 - ..._such_method_restriction_disabled_lib.dart | 103 +++++ ...such_method_restriction_disabled_test.dart | 413 ++++++++++++++++++ ...h_method_restriction_stack_trace_lib1.dart | 11 + ...h_method_restriction_stack_trace_lib2.dart | 22 + ...h_method_restriction_stack_trace_test.dart | 30 ++ 185 files changed, 3089 insertions(+), 1355 deletions(-) create mode 100644 tests/language/inference_update_2/no_such_method_restriction_disabled_lib.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_disabled_test.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_enabled_lib.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_enabled_test.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart create mode 100644 tests/language/inference_update_2/no_such_method_restriction_stack_trace_test.dart create mode 100644 tests/language_2/inference_update_2/no_such_method_restriction_disabled_lib.dart create mode 100644 tests/language_2/inference_update_2/no_such_method_restriction_disabled_test.dart create mode 100644 tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart create mode 100644 tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart create mode 100644 tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_test.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index f1ee27896eb..4d831d36370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,21 @@ [#49635]: https://github.com/dart-lang/sdk/issues/49635 [#49878]: https://github.com/dart-lang/sdk/issues/49878 +- **Breaking Change** [#49687][]: Don't delegate inaccessible private names to + `noSuchMethod`. If a concrete class implements an interface containing a + member with a name that's private to different library, and does not inherit + an implementation of that interface member, a invocation of that member will + result in an exception getting thrown. Previously, such attempts would result + in the call being diverted to the `noSuchMethod` method. + + This change closes a loophole in Dart's privacy system, where another library + can provide a different implementation of a supposedly private member using + `noSuchMethod`, and paves the way for a future implementation of promotion for + private final fields (see [#2020][]). + +[#49687]: https://github.com/dart-lang/sdk/issues/49687 +[#2020]: https://github.com/dart-lang/language/issues/2020 + ### Libraries #### `dart:convert` diff --git a/pkg/dart2wasm/lib/target.dart b/pkg/dart2wasm/lib/target.dart index e9d0627f4c8..43c3cc13339 100644 --- a/pkg/dart2wasm/lib/target.dart +++ b/pkg/dart2wasm/lib/target.dart @@ -263,7 +263,7 @@ class WasmTarget extends Target { bool isStatic = false, bool isConstructor = false, bool isTopLevel = false}) { - return ConstructorInvocation( + return StaticInvocation( coreTypes.noSuchMethodErrorDefaultConstructor, Arguments( [receiver, _instantiateInvocation(coreTypes, name, arguments)])); diff --git a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart index 247aa386ab5..456207e92fa 100644 --- a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart +++ b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart @@ -1483,8 +1483,12 @@ class SourceClassBuilder extends ClassBuilderImpl _transformProcedureToNoSuchMethodForwarder( noSuchMethod, target, member as Procedure); } else { - Procedure memberSignature = - combinedMemberSignature.createMemberFromSignature()!; + // The reason we don't copy the location is to ensure that the stack + // trace for throwing no-such-method forwarders point to the class + // in which they are inserted and not to the declaration of the + // missing member. + Procedure memberSignature = combinedMemberSignature + .createMemberFromSignature(copyLocation: false)!; _transformProcedureToNoSuchMethodForwarder( noSuchMethod, target, memberSignature); cls.procedures.add(memberSignature); @@ -1593,31 +1597,56 @@ class SourceClassBuilder extends ClassBuilderImpl Procedure noSuchMethodInterface, KernelTarget target, Procedure procedure) { + bool shouldThrow = false; + Name procedureName = procedure.name; + if (procedureName.isPrivate) { + Library procedureNameLibrary = procedureName.library!; + // If the name is defined in a different library than the library we're + // synthesizing a forwarder for, then the forwarder must throw. This + // avoids surprising users by ensuring that all non-throwing + // implementations of a private name can be found solely by looking at the + // library in which the name is defined; it also avoids soundness holes in + // field promotion. + if (procedureNameLibrary.compareTo(procedure.enclosingLibrary) != 0) { + shouldThrow = true; + } + } + Expression result; String prefix = procedure.isGetter ? 'get:' : procedure.isSetter ? 'set:' : ''; - String invocationName = prefix + procedure.name.text; + String invocationName = prefix + procedureName.text; if (procedure.isSetter) invocationName += '='; + CoreTypes coreTypes = target.loader.coreTypes; Expression invocation = target.backendTarget.instantiateInvocation( - target.loader.coreTypes, + coreTypes, new ThisExpression(), invocationName, new Arguments.forwarded(procedure.function, libraryBuilder.library), procedure.fileOffset, /*isSuper=*/ false); - Expression result = new InstanceInvocation(InstanceAccessKind.Instance, - new ThisExpression(), noSuchMethodName, new Arguments([invocation]), - functionType: noSuchMethodInterface.getterType as FunctionType, - interfaceTarget: noSuchMethodInterface) - ..fileOffset = procedure.fileOffset; - if (procedure.function.returnType is! VoidType) { - result = new AsExpression(result, procedure.function.returnType) - ..isTypeError = true - ..isForDynamic = true - ..isForNonNullableByDefault = libraryBuilder.isNonNullableByDefault + if (shouldThrow) { + // Build `throw new NoSuchMethodError(this, invocation)`. + result = new Throw(new StaticInvocation( + coreTypes.noSuchMethodErrorDefaultConstructor, + new Arguments([new ThisExpression(), invocation]))) ..fileOffset = procedure.fileOffset; + } else { + // Build `this.noSuchMethod(invocation)`. + result = new InstanceInvocation(InstanceAccessKind.Instance, + new ThisExpression(), noSuchMethodName, new Arguments([invocation]), + functionType: noSuchMethodInterface.getterType as FunctionType, + interfaceTarget: noSuchMethodInterface) + ..fileOffset = procedure.fileOffset; + if (procedure.function.returnType is! VoidType) { + result = new AsExpression(result, procedure.function.returnType) + ..isTypeError = true + ..isForDynamic = true + ..isForNonNullableByDefault = libraryBuilder.isNonNullableByDefault + ..fileOffset = procedure.fileOffset; + } } procedure.function.body = new ReturnStatement(result) ..fileOffset = procedure.fileOffset diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart index bfa0d559bd3..3047f4b0ec3 100644 --- a/pkg/front_end/lib/src/fasta/source/source_loader.dart +++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart @@ -2706,7 +2706,7 @@ abstract class pragma { class AbstractClassInstantiationError {} class NoSuchMethodError { - NoSuchMethodError.withInvocation(receiver, invocation); + factory NoSuchMethodError.withInvocation(receiver, invocation) => throw ''; } class StackTrace {} diff --git a/pkg/front_end/test/spell_checking_list_code.txt b/pkg/front_end/test/spell_checking_list_code.txt index 0cbab9ae562..21a09420cef 100644 --- a/pkg/front_end/test/spell_checking_list_code.txt +++ b/pkg/front_end/test/spell_checking_list_code.txt @@ -618,6 +618,7 @@ histogram history hit hoc +holes hook hopefully horizontal @@ -1393,6 +1394,7 @@ superinterfaces supernode supers suppose +surprising suspended svg sw diff --git a/pkg/front_end/test/spell_checking_list_tests.txt b/pkg/front_end/test/spell_checking_list_tests.txt index aa4fd7f0a4e..30a620da86a 100644 --- a/pkg/front_end/test/spell_checking_list_tests.txt +++ b/pkg/front_end/test/spell_checking_list_tests.txt @@ -102,6 +102,7 @@ cafebabe calloc camel capitalized +carefully categorization causal cb @@ -362,12 +363,14 @@ insights instrument insufficient intdiv +interactions interactive interchangeable internet interpolate introducer inv +involves ioo ish it'll @@ -486,6 +489,7 @@ partfoo party pause paused +pays pc periodic periodically @@ -560,6 +564,7 @@ risky rk row rows +ruin runtimes rv sanitize @@ -598,6 +603,7 @@ smoke snull somehow sorter +soundly spans spell spellcheck @@ -694,6 +700,7 @@ untransformed untrimmed unusual unversioned +upgrade upload upward uuid diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.outline.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.outline.expect index 5ba3b99cfd9..552acbdaec9 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.outline.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.outline.expect @@ -82,15 +82,15 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: ListLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:22:35 -> ListConstant(const *>[]) Evaluated: ConstructorTearOff @ org-dartlang-testcase:///generic_usage_type_variable.dart:18:16 -> ConstructorTearOffConstant(C.name2) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:26:17 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:32:22 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:25:14 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:24:9 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:35:19 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:33:35 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:25:14 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:24:9 -> MapConstant(const {}) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:34:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:39:7 -> MapConstant(const {}) Evaluated: ListLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:15:23 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///generic_usage_type_variable.dart:16:24 -> MapConstant(const {dynamic: dynamic}) Extra constant evaluation: evaluated: 93, effectively constant: 13 diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.expect index 3984e3553d4..57643295594 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.expect @@ -98,8 +98,8 @@ class A extends core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B @@ -107,8 +107,8 @@ class B extends core::Object implements core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -121,8 +121,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int return 0; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -133,8 +133,8 @@ class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 : super self::AbstractEnumClass::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -152,8 +152,8 @@ class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 : super self::AbstractEnumClass2::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.transformed.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.transformed.expect index f61139c0255..08b261112ce 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.strong.transformed.expect @@ -98,8 +98,8 @@ class A extends core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B @@ -107,8 +107,8 @@ class B extends core::Object implements core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -121,8 +121,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int return 0; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -133,8 +133,8 @@ class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 : super self::AbstractEnumClass::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -152,8 +152,8 @@ class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 : super self::AbstractEnumClass2::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.expect index 3984e3553d4..57643295594 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.expect @@ -98,8 +98,8 @@ class A extends core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B @@ -107,8 +107,8 @@ class B extends core::Object implements core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -121,8 +121,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int return 0; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -133,8 +133,8 @@ class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 : super self::AbstractEnumClass::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -152,8 +152,8 @@ class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 : super self::AbstractEnumClass2::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.modular.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.modular.expect index 3984e3553d4..57643295594 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.modular.expect @@ -98,8 +98,8 @@ class A extends core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B @@ -107,8 +107,8 @@ class B extends core::Object implements core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -121,8 +121,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int return 0; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -133,8 +133,8 @@ class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 : super self::AbstractEnumClass::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -152,8 +152,8 @@ class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 : super self::AbstractEnumClass2::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.outline.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.outline.expect index 8448a786698..ee808c747d8 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.outline.expect @@ -97,16 +97,16 @@ class A extends core::Enum { ; get foo() → core::int ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B ; get foo() → core::int ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -117,8 +117,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -127,8 +127,8 @@ abstract class AbstractEnumClass extends self::EnumInterface { class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -144,32 +144,32 @@ abstract class AbstractEnumClass2 extends self::_AbstractEnumClass2&Object&EnumM class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_name, 1, const [], const [], core::Map::unmodifiable(const {}))); } static method main() → dynamic ; Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> SymbolConstant(#_name) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> SymbolConstant(#_name) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> SymbolConstant(#_name) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> SymbolConstant(#_name) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> SymbolConstant(#_name) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/core/enum.dart:47:14 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:5:7 -> SymbolConstant(#_name) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:5:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:5:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:5:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:9:7 -> SymbolConstant(#_name) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:9:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:9:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:9:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:15:7 -> SymbolConstant(#_name) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:15:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:15:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:15:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:21:7 -> SymbolConstant(#_name) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:21:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:21:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:27:7 -> SymbolConstant(#_name) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:27:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:27:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///enum_as_supertype_error.dart:27:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 45, effectively constant: 20 diff --git a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.transformed.expect b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.transformed.expect index f61139c0255..08b261112ce 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_as_supertype_error.dart.weak.transformed.expect @@ -98,8 +98,8 @@ class A extends core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } class B extends core::Object implements core::Enum { synthetic constructor •() → self::B @@ -107,8 +107,8 @@ class B extends core::Object implements core::Enum { ; get foo() → core::int return this.{core::Enum::index}{core::int}; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumInterface extends core::Object implements core::Enum { synthetic constructor •() → self::EnumInterface @@ -121,8 +121,8 @@ class EnumClass extends self::EnumInterface { ; get index() → core::int return 0; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class AbstractEnumClass extends self::EnumInterface { synthetic constructor •() → self::AbstractEnumClass @@ -133,8 +133,8 @@ class EnumClass2 extends self::AbstractEnumClass { synthetic constructor •() → self::EnumClass2 : super self::AbstractEnumClass::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } abstract class EnumMixin extends core::Enum /*isMixinDeclaration*/ { } @@ -152,8 +152,8 @@ class EnumClass3 extends self::AbstractEnumClass2 { synthetic constructor •() → self::EnumClass3 : super self::AbstractEnumClass2::•() ; - no-such-method-forwarder get /* from org-dartlang-sdk:///sdk/lib/core/enum.dart */ _name() → core::String - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + no-such-method-forwarder get _name() → core::String + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/abstract_members.dart.weak.outline.expect b/pkg/front_end/testcases/general/abstract_members.dart.weak.outline.expect index ed720cba9bf..c1361665821 100644 --- a/pkg/front_end/testcases/general/abstract_members.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/abstract_members.dart.weak.outline.expect @@ -325,32 +325,32 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> SymbolConstant(#interfaceMethod2) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:10:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> SymbolConstant(#abstractMethod) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:21:3 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> SymbolConstant(#interfaceMethod1) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> SymbolConstant(#interfaceMethod3) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:16:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> SymbolConstant(#property3=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:24:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> SymbolConstant(#interfaceMethod1=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:12:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> SymbolConstant(#property1=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:22:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> SymbolConstant(#property2=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:23:12 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#interfaceMethod2) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#abstractMethod) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#interfaceMethod1) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#interfaceMethod3) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#property3=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#interfaceMethod1=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#property1=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> SymbolConstant(#property2=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_members.dart:42:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 73, effectively constant: 28 diff --git a/pkg/front_end/testcases/general/abstract_overrides_concrete_with_no_such_method.dart.weak.outline.expect b/pkg/front_end/testcases/general/abstract_overrides_concrete_with_no_such_method.dart.weak.outline.expect index 068685088a5..6e7230a31a5 100644 --- a/pkg/front_end/testcases/general/abstract_overrides_concrete_with_no_such_method.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/abstract_overrides_concrete_with_no_such_method.dart.weak.outline.expect @@ -30,8 +30,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:10:5 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:10:5 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:10:5 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:10:5 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:17:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:17:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:17:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_overrides_concrete_with_no_such_method.dart:17:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 9, effectively constant: 4 diff --git a/pkg/front_end/testcases/general/no_such_method_forwarder.dart.weak.outline.expect b/pkg/front_end/testcases/general/no_such_method_forwarder.dart.weak.outline.expect index d466ed38570..e0ddf1103a2 100644 --- a/pkg/front_end/testcases/general/no_such_method_forwarder.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/no_such_method_forwarder.dart.weak.outline.expect @@ -25,12 +25,12 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:6:8 -> SymbolConstant(#_foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:11:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:11:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:11:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:11:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> SymbolConstant(#_foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_forwarder.dart:14:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 16, effectively constant: 8 diff --git a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.expect b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.expect index ad96a5d5edf..ea8a7514a6a 100644 --- a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.expect +++ b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.expect @@ -9,10 +9,10 @@ class Foo extends core::Object implements no_::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x() → core::int - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - no-such-method-forwarder set /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x(core::int value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _x() → core::int + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _x(core::int value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); } static method main() → dynamic { no_::baz(new self::Foo::•()); diff --git a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.modular.expect b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.modular.expect index ad96a5d5edf..ea8a7514a6a 100644 --- a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.modular.expect +++ b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.modular.expect @@ -9,10 +9,10 @@ class Foo extends core::Object implements no_::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x() → core::int - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - no-such-method-forwarder set /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x(core::int value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _x() → core::int + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _x(core::int value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); } static method main() → dynamic { no_::baz(new self::Foo::•()); diff --git a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.outline.expect b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.outline.expect index 9750dcc9119..ed6c2c95be3 100644 --- a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.outline.expect @@ -8,10 +8,10 @@ import "org-dartlang-testcase:///no_such_method_private_setter_lib.dart"; class Foo extends core::Object implements no_::Bar { synthetic constructor •() → self::Foo ; - no-such-method-forwarder get /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x() → core::int - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_x, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - no-such-method-forwarder set /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x(core::int value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_x=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _x() → core::int + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_x, 1, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder set _x(core::int value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_x=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))); } static method main() → dynamic ; @@ -30,11 +30,11 @@ static method baz(no_::Bar bar) → void Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> SymbolConstant(#_x) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> SymbolConstant(#_x=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_private_setter_lib.dart:8:7 -> MapConstant(const {}) -Extra constant evaluation: evaluated: 19, effectively constant: 7 +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> SymbolConstant(#_x) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> SymbolConstant(#_x=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method_private_setter.dart:10:7 -> MapConstant(const {}) +Extra constant evaluation: evaluated: 20, effectively constant: 7 diff --git a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.transformed.expect b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.transformed.expect index 48b88df6efd..521770424ca 100644 --- a/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/no_such_method_private_setter.dart.weak.transformed.expect @@ -9,10 +9,10 @@ class Foo extends core::Object implements no_::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x() → core::int - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - no-such-method-forwarder set /* from org-dartlang-testcase:///no_such_method_private_setter_lib.dart */ _x(core::int value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _x() → core::int + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _x(core::int value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))); } static method main() → dynamic { no_::baz(new self::Foo::•()); diff --git a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.expect b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.expect index 5fc16060863..6b2e6a20480 100644 --- a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.expect +++ b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.expect @@ -31,13 +31,13 @@ class D3 extends core::Object implements nsm::A, nsm::B { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int a, covariant-by-class core::int b) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([a, b]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([a, b]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } class D4 extends core::Object implements nsm::B, nsm::A { synthetic constructor •() → self::D4 @@ -47,13 +47,13 @@ class D4 extends core::Object implements nsm::B, nsm::A { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int x, covariant-by-declaration core::int y, covariant-by-class core::int z, covariant-by-declaration covariant-by-class core::int w) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int x, covariant-by-class core::int y) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([x, y]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([x, y]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.modular.expect b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.modular.expect index 5fc16060863..6b2e6a20480 100644 --- a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.modular.expect +++ b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.modular.expect @@ -31,13 +31,13 @@ class D3 extends core::Object implements nsm::A, nsm::B { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int a, covariant-by-class core::int b) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([a, b]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([a, b]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } class D4 extends core::Object implements nsm::B, nsm::A { synthetic constructor •() → self::D4 @@ -47,13 +47,13 @@ class D4 extends core::Object implements nsm::B, nsm::A { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int x, covariant-by-declaration core::int y, covariant-by-class core::int z, covariant-by-declaration covariant-by-class core::int w) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int x, covariant-by-class core::int y) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([x, y]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable([x, y]), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.outline.expect b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.outline.expect index 6a88f7b269b..e5918010b6f 100644 --- a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.outline.expect @@ -28,13 +28,13 @@ class D3 extends core::Object implements nsm::A, nsm::B { method noSuchMethod(core::Invocation invocation) → dynamic ; no-such-method-forwarder method _method1(core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#_method1, 0, const [], core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method1, 0, const [], core::List::unmodifiable([a, b, c, d]), core::Map::unmodifiable(const {}))); no-such-method-forwarder method _method2({core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#_method2, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b, #c: c, #d: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method2, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b, #c: c, #d: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int a, covariant-by-class core::int b) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#_method3, 0, const [], core::List::unmodifiable([a, b]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method3, 0, const [], core::List::unmodifiable([a, b]), core::Map::unmodifiable(const {}))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a, covariant-by-class core::int b}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#_method4, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method4, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b}))); } class D4 extends core::Object implements nsm::B, nsm::A { synthetic constructor •() → self::D4 @@ -43,13 +43,13 @@ class D4 extends core::Object implements nsm::B, nsm::A { method noSuchMethod(core::Invocation invocation) → dynamic ; no-such-method-forwarder method _method1(core::int x, covariant-by-declaration core::int y, covariant-by-class core::int z, covariant-by-declaration covariant-by-class core::int w) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#_method1, 0, const [], core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method1, 0, const [], core::List::unmodifiable([x, y, z, w]), core::Map::unmodifiable(const {}))); no-such-method-forwarder method _method2({core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#_method2, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b, #c: c, #d: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method2, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b, #c: c, #d: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int x, covariant-by-class core::int y) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#_method3, 0, const [], core::List::unmodifiable([x, y]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method3, 0, const [], core::List::unmodifiable([x, y]), core::Map::unmodifiable(const {}))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a, covariant-by-class core::int b}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#_method4, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_method4, 0, const [], const [], core::Map::unmodifiable({#a: a, #b: b}))); } static method main() → dynamic ; @@ -199,4 +199,4 @@ Evaluated: ListLiteral @ org-dartlang-testcase:///nsm_covariance_lib.dart:28:7 - Evaluated: ListLiteral @ org-dartlang-testcase:///nsm_covariance_lib.dart:28:7 -> ListConstant(const []) Evaluated: SymbolLiteral @ org-dartlang-testcase:///nsm_covariance_lib.dart:28:7 -> SymbolConstant(#a) Evaluated: SymbolLiteral @ org-dartlang-testcase:///nsm_covariance_lib.dart:28:7 -> SymbolConstant(#b) -Extra constant evaluation: evaluated: 212, effectively constant: 76 +Extra constant evaluation: evaluated: 220, effectively constant: 76 diff --git a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.transformed.expect b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.transformed.expect index 7e269dc5a6a..4e195da17c5 100644 --- a/pkg/front_end/testcases/general/nsm_covariance.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/nsm_covariance.dart.weak.transformed.expect @@ -31,13 +31,13 @@ class D3 extends core::Object implements nsm::A, nsm::B { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int a, covariant-by-declaration core::int b, covariant-by-class core::int c, covariant-by-declaration covariant-by-class core::int d) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal4(a, b, c, d)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal4(a, b, c, d)), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int a, covariant-by-class core::int b) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal2(a, b)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal2(a, b)), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D3::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } class D4 extends core::Object implements nsm::B, nsm::A { synthetic constructor •() → self::D4 @@ -47,13 +47,13 @@ class D4 extends core::Object implements nsm::B, nsm::A { method noSuchMethod(core::Invocation invocation) → dynamic return null; no-such-method-forwarder method _method1(core::int x, covariant-by-declaration core::int y, covariant-by-class core::int z, covariant-by-declaration covariant-by-class core::int w) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal4(x, y, z, w)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C3, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal4(x, y, z, w)), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method2({core::int a = #C1, covariant-by-declaration core::int b = #C1, covariant-by-class core::int c = #C1, covariant-by-declaration covariant-by-class core::int d = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b, #C10: c, #C11: d}))); no-such-method-forwarder method _method3(covariant-by-declaration core::int x, covariant-by-class core::int y) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal2(x, y)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C4, core::List::unmodifiable(core::_GrowableList::_literal2(x, y)), core::Map::unmodifiable(#C5))); no-such-method-forwarder method _method4({covariant-by-declaration core::int a = #C1, covariant-by-class core::int b = #C1}) → void - return this.{self::D4::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))){(core::Invocation) → dynamic}; + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 0, #C4, #C7, core::Map::unmodifiable({#C8: a, #C9: b}))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.expect b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.expect index 74f9325a65c..4912b542132 100644 --- a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.expect +++ b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.expect @@ -9,8 +9,8 @@ class Foo extends core::Object implements pri::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_method_tearoff_lib.dart */ _f() → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder method _f() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo { synthetic constructor •() → self::Baz diff --git a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.modular.expect b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.modular.expect index 74f9325a65c..4912b542132 100644 --- a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.modular.expect +++ b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.modular.expect @@ -9,8 +9,8 @@ class Foo extends core::Object implements pri::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_method_tearoff_lib.dart */ _f() → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder method _f() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo { synthetic constructor •() → self::Baz diff --git a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.outline.expect b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.outline.expect index a8acd44828f..d69d8804e0f 100644 --- a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.outline.expect @@ -8,8 +8,8 @@ import "org-dartlang-testcase:///private_method_tearoff_lib.dart"; class Foo extends core::Object implements pri::Bar { synthetic constructor •() → self::Foo ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_method_tearoff_lib.dart */ _f() → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_f, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + no-such-method-forwarder method _f() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_f, 0, const [], const [], core::Map::unmodifiable(const {}))); } class Baz extends self::Foo { synthetic constructor •() → self::Baz @@ -33,8 +33,8 @@ static method baz(pri::Bar bar) → void Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_method_tearoff_lib.dart:8:8 -> SymbolConstant(#_f) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_method_tearoff_lib.dart:8:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_method_tearoff_lib.dart:8:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///private_method_tearoff_lib.dart:8:8 -> MapConstant(const {}) -Extra constant evaluation: evaluated: 8, effectively constant: 4 +Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_method_tearoff.dart:11:7 -> SymbolConstant(#_f) +Evaluated: ListLiteral @ org-dartlang-testcase:///private_method_tearoff.dart:11:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///private_method_tearoff.dart:11:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///private_method_tearoff.dart:11:7 -> MapConstant(const {}) +Extra constant evaluation: evaluated: 9, effectively constant: 4 diff --git a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.transformed.expect b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.transformed.expect index 74f9325a65c..4912b542132 100644 --- a/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/private_method_tearoff.dart.weak.transformed.expect @@ -9,8 +9,8 @@ class Foo extends core::Object implements pri::Bar { synthetic constructor •() → self::Foo : super core::Object::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_method_tearoff_lib.dart */ _f() → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder method _f() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo { synthetic constructor •() → self::Baz diff --git a/pkg/front_end/testcases/general/super_nsm.dart.weak.outline.expect b/pkg/front_end/testcases/general/super_nsm.dart.weak.outline.expect index a2bcec45ec4..79b7c9faa91 100644 --- a/pkg/front_end/testcases/general/super_nsm.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/super_nsm.dart.weak.outline.expect @@ -28,8 +28,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///super_nsm.dart:6:3 -> SymbolConstant(#interfaceMethod) -Evaluated: ListLiteral @ org-dartlang-testcase:///super_nsm.dart:6:3 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///super_nsm.dart:6:3 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///super_nsm.dart:6:3 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///super_nsm.dart:9:7 -> SymbolConstant(#interfaceMethod) +Evaluated: ListLiteral @ org-dartlang-testcase:///super_nsm.dart:9:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///super_nsm.dart:9:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///super_nsm.dart:9:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 9, effectively constant: 4 diff --git a/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.1.expect b/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.1.expect index 2ac1aeb34d9..61002e18174 100644 --- a/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.1.expect +++ b/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.1.expect @@ -24,14 +24,14 @@ library from "org-dartlang-test:///main.dart" as main { synthetic constructor •() → main::B : super dart.core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-test:///lib.dart */ _#A#x#isSet() → dart.core::bool - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder get /* from org-dartlang-test:///lib.dart */ _#A#x() → dart.core::int? - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::int?; - no-such-method-forwarder set /* from org-dartlang-test:///lib.dart */ _#A#x#isSet(dart.core::bool value) → void - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib.dart */ _#A#x(dart.core::int? value) → void - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C7, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → dart.core::bool + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder get _#A#x() → dart.core::int? + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x#isSet(dart.core::bool value) → void + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(dart.core::int? value) → void + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C7, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))); } } constants { diff --git a/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.2.expect b/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.2.expect index 2ac1aeb34d9..61002e18174 100644 --- a/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.2.expect +++ b/pkg/front_end/testcases/incremental/no_change_but_changed_type_02.yaml.world.2.expect @@ -24,14 +24,14 @@ library from "org-dartlang-test:///main.dart" as main { synthetic constructor •() → main::B : super dart.core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-test:///lib.dart */ _#A#x#isSet() → dart.core::bool - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder get /* from org-dartlang-test:///lib.dart */ _#A#x() → dart.core::int? - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::int?; - no-such-method-forwarder set /* from org-dartlang-test:///lib.dart */ _#A#x#isSet(dart.core::bool value) → void - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib.dart */ _#A#x(dart.core::int? value) → void - return this.{dart.core::Object::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C7, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → dart.core::bool + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder get _#A#x() → dart.core::int? + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x#isSet(dart.core::bool value) → void + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(dart.core::int? value) → void + return throw dart.core::NoSuchMethodError::withInvocation(this, new dart.core::_InvocationMirror::_withType(#C7, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))); } } constants { diff --git a/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.1.expect b/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.1.expect index c1df2f5ccd3..aa33d6f52b3 100644 --- a/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.1.expect +++ b/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.1.expect @@ -22,11 +22,11 @@ library from "org-dartlang-test:///main.dart" as main { method noSuchMethod(dart.core::Invocation msg) → dynamic { dart.core::print("noSouchMethod!"); } - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ getter() → dart.core::bool + no-such-method-forwarder get getter() → dart.core::bool return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder method /* from org-dartlang-test:///lib1.dart */ method() → void + no-such-method-forwarder method method() → void return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 0, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ setter(dart.core::bool b) → void + no-such-method-forwarder set setter(dart.core::bool b) → void return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(b)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; } class Foo2 extends dart.core::Object implements lib1::Bar { @@ -36,15 +36,15 @@ library from "org-dartlang-test:///main.dart" as main { method noSuchMethod(dart.core::Invocation msg) → dynamic { dart.core::print("noSouchMethod!"); } - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ getter() → dart.core::bool + no-such-method-forwarder get getter() → dart.core::bool return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ field() → dart.core::bool + no-such-method-forwarder get field() → dart.core::bool return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C7, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder method /* from org-dartlang-test:///lib1.dart */ method() → void + no-such-method-forwarder method method() → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 0, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ setter(dart.core::bool b) → void + no-such-method-forwarder set setter(dart.core::bool b) → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(b)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ field(dart.core::bool value) → void + no-such-method-forwarder set field(dart.core::bool value) → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C8, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; } } diff --git a/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.2.expect b/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.2.expect index 91bbef7fc39..284e37c9ffc 100644 --- a/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.2.expect +++ b/pkg/front_end/testcases/incremental/no_outline_change_16.yaml.world.2.expect @@ -22,11 +22,11 @@ library from "org-dartlang-test:///main.dart" as main { method noSuchMethod(dart.core::Invocation msg) → dynamic { dart.core::print("noSouchMethod!!"); } - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ getter() → dart.core::bool + no-such-method-forwarder get getter() → dart.core::bool return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder method /* from org-dartlang-test:///lib1.dart */ method() → void + no-such-method-forwarder method method() → void return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 0, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ setter(dart.core::bool b) → void + no-such-method-forwarder set setter(dart.core::bool b) → void return this.{main::Foo1::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(b)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; } class Foo2 extends dart.core::Object implements lib1::Bar { @@ -36,15 +36,15 @@ library from "org-dartlang-test:///main.dart" as main { method noSuchMethod(dart.core::Invocation msg) → dynamic { dart.core::print("noSouchMethod!!"); } - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ getter() → dart.core::bool + no-such-method-forwarder get getter() → dart.core::bool return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder get /* from org-dartlang-test:///lib1.dart */ field() → dart.core::bool + no-such-method-forwarder get field() → dart.core::bool return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C7, 1, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} dart.core::bool; - no-such-method-forwarder method /* from org-dartlang-test:///lib1.dart */ method() → void + no-such-method-forwarder method method() → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C5, 0, #C2, #C3, dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ setter(dart.core::bool b) → void + no-such-method-forwarder set setter(dart.core::bool b) → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C6, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(b)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-test:///lib1.dart */ field(dart.core::bool value) → void + no-such-method-forwarder set field(dart.core::bool value) → void return this.{main::Foo2::noSuchMethod}(new dart.core::_InvocationMirror::_withType(#C8, 2, #C2, dart.core::List::unmodifiable(dart.core::_GrowableList::_literal1(value)), dart.core::Map::unmodifiable(#C4))){(dart.core::Invocation) → dynamic}; } } diff --git a/pkg/front_end/testcases/inference/future_then.dart.weak.expect b/pkg/front_end/testcases/inference/future_then.dart.weak.expect index c7f957da7fb..7a8de8eb217 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then.dart.weak.modular.expect index c7f957da7fb..7a8de8eb217 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then.dart.weak.outline.expect index 8237af09a1f..28ddca68c1b 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then.dart.weak.transformed.expect index 59040bdd819..5a23be8d002 100644 --- a/pkg/front_end/testcases/inference/future_then.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_2.dart.weak.expect index 24bbd714d2b..89df77af40c 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_2.dart.weak.modular.expect index 24bbd714d2b..89df77af40c 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_2.dart.weak.outline.expect index 8237af09a1f..0408212363f 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_2.dart.weak.transformed.expect index 799dbca8748..d833972eae7 100644 --- a/pkg/front_end/testcases/inference/future_then_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_2.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_3.dart.weak.expect index e2c59bb015d..88390dc4777 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_3.dart.weak.modular.expect index e2c59bb015d..88390dc4777 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_3.dart.weak.outline.expect index 8237af09a1f..bfea426ac0f 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_3.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_3.dart.weak.transformed.expect index a49af5dc2eb..480e47b7fe7 100644 --- a/pkg/front_end/testcases/inference/future_then_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_3.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_4.dart.weak.expect index fc93c1cb2bd..8d4ae423f06 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_4.dart.weak.modular.expect index fc93c1cb2bd..8d4ae423f06 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_4.dart.weak.outline.expect index 8237af09a1f..92982000b6a 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_4.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_4.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_4.dart.weak.transformed.expect index 45d285d5fbc..513fb78fb3f 100644 --- a/pkg/front_end/testcases/inference/future_then_4.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_4.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_5.dart.weak.expect index a3d1342a665..028e355a43a 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_5.dart.weak.modular.expect index a3d1342a665..028e355a43a 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_5.dart.weak.outline.expect index 454c5175e9b..900bdcb3611 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_5.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_5.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_5.dart.weak.transformed.expect index 4b4a41fd679..1c005c28501 100644 --- a/pkg/front_end/testcases/inference/future_then_5.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_5.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_6.dart.weak.expect index 076e9b4ed29..10e338b7899 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_6.dart.weak.modular.expect index 076e9b4ed29..10e338b7899 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_6.dart.weak.outline.expect index 454c5175e9b..cfeb924040c 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_6.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_6.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_6.dart.weak.transformed.expect index dccede506d5..2d812a7cdea 100644 --- a/pkg/front_end/testcases/inference/future_then_6.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_6.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.expect index dc8d05eb2a0..9564bff026d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.modular.expect index dc8d05eb2a0..9564bff026d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.outline.expect index 44e6a65822e..a09b7d8b152 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.transformed.expect index 77bf58cf998..a935810fed5 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.expect index 9ae1043c34d..769b2a39927 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.modular.expect index 9ae1043c34d..769b2a39927 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.outline.expect index 44e6a65822e..ae9f603a209 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.transformed.expect index ce018e4785c..e3dd9621949 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_2.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.expect index 88f13107d79..7c26982089d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.modular.expect index 88f13107d79..7c26982089d 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.outline.expect index 44e6a65822e..946e85aabc7 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_3.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.transformed.expect index b0ac878baff..2d9eeea398c 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_3.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.expect index ff4e173da70..64f088e2a19 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.modular.expect index ff4e173da70..64f088e2a19 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.outline.expect index 44e6a65822e..9d754d4d58b 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_4.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.transformed.expect index 142095540f8..7075ec87f25 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_4.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.expect index efa89141362..7bee78189e2 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.modular.expect index efa89141362..7bee78189e2 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.outline.expect index 84c1e747213..63459fc0007 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_5.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.transformed.expect index 3ef32de388d..75aa0179833 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_5.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.expect index c7c7f3ee465..b131fba0922 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.modular.expect index c7c7f3ee465..b131fba0922 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.modular.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.outline.expect index 84c1e747213..ef6d7040c63 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_conditional2_6.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.transformed.expect index cf18067a072..d74181c0d10 100644 --- a/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_conditional2_6.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(asy::Future f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.expect index 12108cf2ab3..bb47b589634 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.expect @@ -49,13 +49,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.modular.expect index 12108cf2ab3..bb47b589634 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.modular.expect @@ -49,13 +49,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.outline.expect index a2aeb28d7d8..724c048073b 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void @@ -30,17 +30,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_ifNull2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.transformed.expect index 68c066866ee..6add2b33faf 100644 --- a/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_ifNull2.dart.weak.transformed.expect @@ -49,13 +49,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test(self::MyFuture f) → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect index c54b258ec1f..582c1127bb4 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect @@ -23,13 +23,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.modular.expect index c54b258ec1f..582c1127bb4 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.modular.expect @@ -23,13 +23,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.outline.expect index c265904bef9..2fe65421585 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void @@ -30,17 +30,17 @@ static method foo() → self::MyFuture Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect index 0df67f28dfc..1eb876149c9 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect @@ -23,13 +23,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect index cdc26350de3..c50e776f3f9 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.modular.expect index cdc26350de3..c50e776f3f9 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.modular.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.outline.expect index c265904bef9..44e7662de89 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void @@ -30,17 +30,17 @@ static method foo() → self::MyFuture Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards_2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect index 97e9554ecba..ee7ee1d4f51 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect index eda2025bae5..62b0220e3db 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.modular.expect index eda2025bae5..62b0220e3db 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.modular.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.outline.expect index c3f4a74947b..096d49a701e 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void @@ -32,17 +32,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_then_upwards_3.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect index 79b6308c838..9889eea5afc 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect @@ -22,13 +22,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method test() → void { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.expect index 06325b898cc..5d8e0008c67 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.modular.expect index 06325b898cc..5d8e0008c67 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.modular.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.outline.expect index f78257c25c6..d8a0dbbffb6 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async @@ -34,17 +34,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_async_conditional2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.transformed.expect index 069d3a0aece..fd570c887ae 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional2.dart.weak.transformed.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.expect index 75d79fb4758..2879cdaffe0 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.modular.expect index 75d79fb4758..2879cdaffe0 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.modular.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.outline.expect index f78257c25c6..4da43677d3d 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async @@ -34,17 +34,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_async_conditional_2_2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.transformed.expect index b7502eb8a61..e691c7dc854 100644 --- a/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_async_conditional_2_2.dart.weak.transformed.expect @@ -35,13 +35,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static method g1(core::bool x) → asy::Future async /* futureValueType= core::int */ { diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect index 986056a1df5..78f544b3c51 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.modular.expect index 986056a1df5..78f544b3c51 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.modular.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.outline.expect index 8ee2f994c77..3049355b897 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f; @@ -35,17 +35,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect index f36588cfb00..b63b8ef14ec 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.expect index 6427ffacdbd..1c798c1c3f0 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.modular.expect index 6427ffacdbd..1c798c1c3f0 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.outline.expect index 8ee2f994c77..3c52d43d3c5 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f; @@ -35,17 +35,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_2.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.transformed.expect index e3d49b735b5..420d41b9cb6 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_2.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field self::MyFuture f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect index e195bf17557..23ff0910873 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.modular.expect index e195bf17557..23ff0910873 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.modular.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.outline.expect index 609bbae4d36..480ae171ce4 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f; @@ -35,17 +35,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_3.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect index 1c2a48f7aae..8ac3abc62d8 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect @@ -21,13 +21,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.expect index 780b5a07438..361ead27a55 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.modular.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.modular.expect index 780b5a07438..361ead27a55 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.modular.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.modular.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.outline.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.outline.expect index 609bbae4d36..6653302e213 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.outline.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement ; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = null}) → self::MyFuture ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f; @@ -35,17 +35,17 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///future_union_downwards_4.dart:10:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 46, effectively constant: 13 diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.transformed.expect index 025e2eb00fd..14602592708 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.weak.transformed.expect @@ -14,13 +14,13 @@ class MyFuture extends core::Object implement return null; method then((self::MyFuture::T%) → FutureOrf, {core::Function? onError = #C1}) → self::MyFuture return throw ""; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOronTimeout = #C1}) → asy::Future return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream + no-such-method-forwarder method asStream() → asy::Stream return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, #C10, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; } static field asy::Future f = throw ""; diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.expect index 37756b5a7f3..7560dbddb03 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.expect @@ -9,10 +9,10 @@ class C extends iss::B { synthetic constructor •() → self::C : super iss::B::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); } static method main() → dynamic { new self::C::•(); diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.transformed.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.transformed.expect index 07d36fdccba..ce15d0543ed 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.strong.transformed.expect @@ -9,10 +9,10 @@ class C extends iss::B { synthetic constructor •() → self::C : super iss::B::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))); } static method main() → dynamic { new self::C::•(); diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.expect index 8fe6ee75b49..cb2b0333e94 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.expect @@ -9,14 +9,14 @@ class C extends iss::B { synthetic constructor •() → self::C : super iss::B::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet() → core::bool - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet(core::bool value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → core::bool + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x#isSet(core::bool value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); } static method main() → dynamic { new self::C::•(); diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.modular.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.modular.expect index 4a82ef68d33..8b3d40461ff 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.modular.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.modular.expect @@ -9,14 +9,14 @@ class C extends iss::B { synthetic constructor •() → self::C : super iss::B::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet() → core::bool - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet(core::bool value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → core::bool + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x#isSet(core::bool value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable([value]), core::Map::unmodifiable(#C4))); } static method main() → dynamic { new self::C::•(); diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.outline.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.outline.expect index ae337d4443b..2a88d989cd7 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.outline.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.outline.expect @@ -8,14 +8,14 @@ import "org-dartlang-testcase:///issue41436c_lib.dart"; class C extends iss::B { synthetic constructor •() → self::C ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet() → core::bool - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_#A#x#isSet, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_#A#x, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet(core::bool value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_#A#x#isSet=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#_#A#x=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → core::bool + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_#A#x#isSet, 1, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_#A#x, 1, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder set _#A#x#isSet(core::bool value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_#A#x#isSet=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_#A#x=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))); } static method main() → dynamic ; @@ -40,18 +40,18 @@ class B extends core::Object implements iss::A { Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> SymbolConstant(#_#A#x#isSet) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> SymbolConstant(#_#A#x) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> SymbolConstant(#_#A#x#isSet=) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> SymbolConstant(#_#A#x=) -Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c_lib.dart:6:12 -> MapConstant(const {}) -Extra constant evaluation: evaluated: 38, effectively constant: 14 +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> SymbolConstant(#_#A#x#isSet) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> SymbolConstant(#_#A#x) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> SymbolConstant(#_#A#x#isSet=) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> SymbolConstant(#_#A#x=) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue41436c.dart:7:7 -> MapConstant(const {}) +Extra constant evaluation: evaluated: 40, effectively constant: 14 diff --git a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.transformed.expect b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.transformed.expect index fdea8944b2e..8f7587af126 100644 --- a/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/issue41436c/issue41436c.dart.weak.transformed.expect @@ -9,14 +9,14 @@ class C extends iss::B { synthetic constructor •() → self::C : super iss::B::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet() → core::bool - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - no-such-method-forwarder get /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x() → core::int? - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x#isSet(core::bool value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///issue41436c_lib.dart */ _#A#x(core::int? value) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _#A#x#isSet() → core::bool + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder get _#A#x() → core::int? + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x#isSet(core::bool value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C6, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _#A#x(core::int? value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C7, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C4))); } static method main() → dynamic { new self::C::•(); diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect index 64a0fed293f..70915c191fb 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect @@ -26,15 +26,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic return super.{core::Object::noSuchMethod}(invocation); - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, core::List::unmodifiable([self::Divergent::then::R%]), core::List::unmodifiable([onValue]), core::Map::unmodifiable({#C10: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 0, #C3, #C12, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async /* futureValueType= dynamic */ { diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect index 8c665cc1979..e9db26f23d2 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect @@ -26,15 +26,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic return super.{core::Object::noSuchMethod}(invocation); - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, core::List::unmodifiable(core::_GrowableList::_literal1(self::Divergent::then::R%)), core::List::unmodifiable(core::_GrowableList::_literal1(onValue)), core::Map::unmodifiable({#C10: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 0, #C3, #C12, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async /* futureValueType= dynamic */ { diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect index 64a0fed293f..70915c191fb 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect @@ -26,15 +26,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic return super.{core::Object::noSuchMethod}(invocation); - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, core::List::unmodifiable([self::Divergent::then::R%]), core::List::unmodifiable([onValue]), core::Map::unmodifiable({#C10: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 0, #C3, #C12, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async /* futureValueType= dynamic */ { diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.modular.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.modular.expect index 64a0fed293f..70915c191fb 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.modular.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.modular.expect @@ -26,15 +26,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic return super.{core::Object::noSuchMethod}(invocation); - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable([onError]), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable([action]), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, core::List::unmodifiable([self::Divergent::then::R%]), core::List::unmodifiable([onValue]), core::Map::unmodifiable({#C10: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 0, #C3, #C12, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async /* futureValueType= dynamic */ { diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.outline.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.outline.expect index 8ef7ef755a5..2172a07091d 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.outline.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.outline.expect @@ -10,15 +10,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic ; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#catchError, 0, const [], core::List::unmodifiable([onError]), core::Map::unmodifiable({#test: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#whenComplete, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#timeout, 0, const [], core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#onTimeout: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#then, 0, core::List::unmodifiable([self::Divergent::then::R%]), core::List::unmodifiable([onValue]), core::Map::unmodifiable({#onError: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#asStream, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async @@ -28,19 +28,19 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#catchError) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:821:13 -> SymbolConstant(#test) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> SymbolConstant(#whenComplete) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:872:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#timeout) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:951:13 -> SymbolConstant(#onTimeout) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:770:13 -> SymbolConstant(#then) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:770:13 -> SymbolConstant(#onError) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> SymbolConstant(#asStream) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/async/future.dart:881:13 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#catchError) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#test) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#whenComplete) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#timeout) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#onTimeout) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#then) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#onError) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> SymbolConstant(#asStream) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///issue42546.dart:9:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 61, effectively constant: 15 diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect index 8c665cc1979..e9db26f23d2 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect @@ -26,15 +26,15 @@ class Divergent extends core::Object implemen ; method noSuchMethod(core::Invocation invocation) → dynamic return super.{core::Object::noSuchMethod}(invocation); - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + no-such-method-forwarder method catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + no-such-method-forwarder method timeout(core::Duration timeLimit, {covariant-by-class () →? FutureOr>>onTimeout = #C1}) → asy::Future>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C8: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + no-such-method-forwarder method then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, core::List::unmodifiable(core::_GrowableList::_literal1(self::Divergent::then::R%)), core::List::unmodifiable(core::_GrowableList::_literal1(onValue)), core::Map::unmodifiable({#C10: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + no-such-method-forwarder method asStream() → asy::Stream>> return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 0, #C3, #C12, core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async /* futureValueType= dynamic */ { diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/inherited_implements.dart.weak.outline.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/inherited_implements.dart.weak.outline.expect index 645b3352a74..06d61c194e0 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/inherited_implements.dart.weak.outline.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/inherited_implements.dart.weak.outline.expect @@ -245,14 +245,14 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: StaticGet @ org-dartlang-testcase:///inherited_implements.dart:28:4 -> InstanceConstant(const _Override{}) Evaluated: StaticGet @ org-dartlang-testcase:///inherited_implements.dart:37:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///inherited_implements.dart:20:7 -> SymbolConstant(#mixedInMethod) -Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:20:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:20:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///inherited_implements.dart:20:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///inherited_implements.dart:19:7 -> SymbolConstant(#extendedMethod) -Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:19:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:19:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///inherited_implements.dart:19:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> SymbolConstant(#mixedInMethod) +Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> SymbolConstant(#extendedMethod) +Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///inherited_implements.dart:36:7 -> MapConstant(const {}) Evaluated: StaticGet @ org-dartlang-testcase:///inherited_implements.dart:49:4 -> InstanceConstant(const _Override{}) Evaluated: StaticGet @ org-dartlang-testcase:///inherited_implements.dart:59:4 -> InstanceConstant(const _Override{}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///inherited_implements.dart:64:7 -> SymbolConstant(#extendedMethod) diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.expect index 980d6fe46f4..8b2c4aa010c 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.expect @@ -70,19 +70,27 @@ library /*isNonNullableByDefault*/; // // Problems in library: // +// pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:32:8: Error: 'NoMethodForPrivateNameError' isn't a type. +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:32:8: Error: A catch clause must have a body, even if it is empty. // Try adding an empty body. -// } on NoSuchMethodError (e) { -// ^^^^^^^^^^^^^^^^^ +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:34:3: Error: Expected ';' after this. // } // ^ // +// pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:38:8: Error: 'NoMethodForPrivateNameError' isn't a type. +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:38:8: Error: A catch clause must have a body, even if it is empty. // Try adding an empty body. -// } on NoSuchMethodError (e) { -// ^^^^^^^^^^^^^^^^^ +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:40:3: Error: Expected ';' after this. // } @@ -133,18 +141,18 @@ abstract class Interface2 extends core::Object { static method testInterface2(opt::Interface2 c) → dynamic { try { c.{opt::Interface2::_privateGetter}{opt::A}; - throw "Expected NoSuchMethodError"; + throw "Expected NoMethodForPrivateNameError"; } - on core::NoSuchMethodError catch(no-exception-var) { + on invalid-type catch(no-exception-var) { } (dynamic e) → Null { core::print(e); }; try { c.{opt::Interface2::_privateSetter} = new opt::C::•(); - throw "Expected NoSuchMethodError"; + throw "Expected NoMethodForPrivateNameError"; } - on core::NoSuchMethodError catch(no-exception-var) { + on invalid-type catch(no-exception-var) { } (dynamic e) → Null { core::print(e); @@ -162,10 +170,10 @@ class Mixin2 extends core::Object implements opt::Interface2 { synthetic constructor •() → opt3::Mixin2 : super core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateGetter() → opt::A - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} opt::A; - no-such-method-forwarder set /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateSetter(opt::C c) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _privateGetter() → opt::A + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _privateSetter(opt::C c) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))); } library; diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.outline.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.outline.expect index e5c16027891..6cffbf87b57 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.outline.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.outline.expect @@ -111,10 +111,10 @@ import "org-dartlang-testcase:///opt_in_lib1.dart"; class Mixin2 extends core::Object implements opt::Interface2 { synthetic constructor •() → opt3::Mixin2 ; - no-such-method-forwarder get /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateGetter() → opt::A - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} opt::A; - no-such-method-forwarder set /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateSetter(opt::C c) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _privateGetter() → opt::A + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _privateSetter(opt::C c) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))); } library; diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.transformed.expect index be4c6526167..1e9bffc68d3 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/main.dart.weak.transformed.expect @@ -70,19 +70,27 @@ library /*isNonNullableByDefault*/; // // Problems in library: // +// pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:32:8: Error: 'NoMethodForPrivateNameError' isn't a type. +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:32:8: Error: A catch clause must have a body, even if it is empty. // Try adding an empty body. -// } on NoSuchMethodError (e) { -// ^^^^^^^^^^^^^^^^^ +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:34:3: Error: Expected ';' after this. // } // ^ // +// pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:38:8: Error: 'NoMethodForPrivateNameError' isn't a type. +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:38:8: Error: A catch clause must have a body, even if it is empty. // Try adding an empty body. -// } on NoSuchMethodError (e) { -// ^^^^^^^^^^^^^^^^^ +// } on NoMethodForPrivateNameError (e) { +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart:40:3: Error: Expected ';' after this. // } @@ -133,18 +141,18 @@ abstract class Interface2 extends core::Object { static method testInterface2(opt::Interface2 c) → dynamic { try { c.{opt::Interface2::_privateGetter}{opt::A}; - throw "Expected NoSuchMethodError"; + throw "Expected NoMethodForPrivateNameError"; } - on core::NoSuchMethodError catch(no-exception-var) { + on invalid-type catch(no-exception-var) { } (dynamic e) → Null { core::print(e); }; try { c.{opt::Interface2::_privateSetter} = new opt::C::•(); - throw "Expected NoSuchMethodError"; + throw "Expected NoMethodForPrivateNameError"; } - on core::NoSuchMethodError catch(no-exception-var) { + on invalid-type catch(no-exception-var) { } (dynamic e) → Null { core::print(e); @@ -162,10 +170,10 @@ class Mixin2 extends core::Object implements opt::Interface2 { synthetic constructor •() → opt3::Mixin2 : super core::Object::•() ; - no-such-method-forwarder get /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateGetter() → opt::A - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} opt::A; - no-such-method-forwarder set /* from org-dartlang-testcase:///opt_in_lib1.dart */ _privateSetter(opt::C c) → void - return this.{core::Object::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))){(core::Invocation) → dynamic}; + no-such-method-forwarder get _privateGetter() → opt::A + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 1, #C2, #C3, core::Map::unmodifiable(#C4))); + no-such-method-forwarder set _privateSetter(opt::C c) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C5, 2, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(c)), core::Map::unmodifiable(#C4))); } library; diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart index 0019ab0f31e..28cc070d940 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/mixin_from_dill/opt_in_lib1.dart @@ -28,14 +28,14 @@ abstract class Interface2 { testInterface2(Interface2 c) { try { c._privateGetter; - throw 'Expected NoSuchMethodError'; - } on NoSuchMethodError (e) { + throw 'Expected NoMethodForPrivateNameError'; + } on NoMethodForPrivateNameError (e) { print(e); } try { c._privateSetter = new C(); - throw 'Expected NoSuchMethodError'; - } on NoSuchMethodError (e) { + throw 'Expected NoMethodForPrivateNameError'; + } on NoMethodForPrivateNameError (e) { print(e); } } diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/no_such_method.dart.weak.outline.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/no_such_method.dart.weak.outline.expect index bb3b2655361..2b7da3f733f 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/no_such_method.dart.weak.outline.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/no_such_method.dart.weak.outline.expect @@ -330,117 +330,117 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:20:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> SymbolConstant(#getter) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> SymbolConstant(#finalField) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> SymbolConstant(#setter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> SymbolConstant(#getter) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> SymbolConstant(#finalField) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> SymbolConstant(#setter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#getter) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#finalField) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#setter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#getter) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#finalField) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#setter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:38:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> SymbolConstant(#getter) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> SymbolConstant(#finalField) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> SymbolConstant(#setter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> SymbolConstant(#getter) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> SymbolConstant(#finalField) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> SymbolConstant(#setter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#getter) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#finalField) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#setter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#getter) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#finalField) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#setter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:57:4 -> InstanceConstant(const _Override{}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:70:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> SymbolConstant(#getter) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:6:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> SymbolConstant(#finalField) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:10:13 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> SymbolConstant(#setter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:9:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#getter) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#finalField) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#setter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 283, effectively constant: 114 diff --git a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.expect index 740dfc638f7..d72ca930d76 100644 --- a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.expect @@ -77,7 +77,7 @@ class MockHttpHeaders extends self::Mock implements _ht::HttpHeaders { return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C30, 0, #C2, core::List::unmodifiable([action]), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; no-such-method-forwarder method noFolding(core::String* name) → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C31, 0, #C2, core::List::unmodifiable([name]), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/_http/http.dart */ clear() → void + no-such-method-forwarder method clear() → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C32, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.modular.expect b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.modular.expect index 740dfc638f7..d72ca930d76 100644 --- a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.modular.expect +++ b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.modular.expect @@ -77,7 +77,7 @@ class MockHttpHeaders extends self::Mock implements _ht::HttpHeaders { return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C30, 0, #C2, core::List::unmodifiable([action]), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; no-such-method-forwarder method noFolding(core::String* name) → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C31, 0, #C2, core::List::unmodifiable([name]), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/_http/http.dart */ clear() → void + no-such-method-forwarder method clear() → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C32, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.outline.expect b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.outline.expect index 0e357f54557..c657f9494fe 100644 --- a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.outline.expect +++ b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.outline.expect @@ -75,7 +75,7 @@ class MockHttpHeaders extends self::Mock implements _ht::HttpHeaders { return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#forEach, 0, const [], core::List::unmodifiable([action]), core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; no-such-method-forwarder method noFolding(core::String* name) → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#noFolding, 0, const [], core::List::unmodifiable([name]), core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/_http/http.dart */ clear() → void + no-such-method-forwarder method clear() → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#clear, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; } static method main() → dynamic @@ -170,8 +170,8 @@ Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> Evaluated: SymbolLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> SymbolConstant(#noFolding) Evaluated: ListLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:568:8 -> SymbolConstant(#clear) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:568:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:568:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:568:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> SymbolConstant(#clear) +Evaluated: ListLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 268, effectively constant: 91 diff --git a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.transformed.expect index e753783f6a6..686a1f0cdd6 100644 --- a/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/mock_http_headers.dart.weak.transformed.expect @@ -77,7 +77,7 @@ class MockHttpHeaders extends self::Mock implements _ht::HttpHeaders { return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C30, 0, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; no-such-method-forwarder method noFolding(core::String* name) → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C31, 0, #C2, core::List::unmodifiable(core::_GrowableList::_literal1(name)), core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/_http/http.dart */ clear() → void + no-such-method-forwarder method clear() → void return this.{self::Mock::noSuchMethod}(new core::_InvocationMirror::_withType(#C32, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field.dart.weak.outline.expect index 155b834cb5f..951d8ed6f4d 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field.dart.weak.outline.expect @@ -47,11 +47,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:18:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field.dart:21:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 19, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_arent_mixed_in.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_arent_mixed_in.dart.weak.outline.expect index 7bead7e9c70..52e96e7552f 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_arent_mixed_in.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_arent_mixed_in.dart.weak.outline.expect @@ -66,11 +66,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:12:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_arent_mixed_in.dart:15:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 21, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_one_defined.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_one_defined.dart.weak.outline.expect index 90f26d31a5f..54327356d89 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_one_defined.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_one_defined.dart.weak.outline.expect @@ -70,11 +70,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:17:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:26:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:37:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:37:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:37:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_one_defined.dart:37:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 19, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_with_substitution.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_with_substitution.dart.weak.outline.expect index 630a25078e4..f5bbc22d81e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_with_substitution.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_accessors_from_field_with_substitution.dart.weak.outline.expect @@ -43,11 +43,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:18:11 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_accessors_from_field_with_substitution.dart:21:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 19, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.weak.outline.expect index d735754d452..9a14b03776a 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_interface_nsm_inherited.dart.weak.outline.expect @@ -43,8 +43,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:16:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:16:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:16:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:16:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:19:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:19:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:19:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_interface_nsm_inherited.dart:19:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/abstract_override_with_different_signature.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/abstract_override_with_different_signature.dart.weak.outline.expect index 344c08ef52b..5dc5fb89430 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/abstract_override_with_different_signature.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/abstract_override_with_different_signature.dart.weak.outline.expect @@ -72,9 +72,9 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:8:8 -> SymbolConstant(#eatFood) -Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:8:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:8:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:11:7 -> SymbolConstant(#eatFood) +Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:11:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:11:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:23:8 -> SymbolConstant(#eatFood) Evaluated: ListLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:23:8 -> ListConstant(const []) Evaluated: SymbolLiteral @ org-dartlang-testcase:///abstract_override_with_different_signature.dart:23:8 -> SymbolConstant(#amount) diff --git a/pkg/front_end/testcases/no_such_method_forwarders/concrete_method_over_forwarder_in_mixin_application.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/concrete_method_over_forwarder_in_mixin_application.dart.weak.outline.expect index ada8b9c09e5..d0c32f8cc90 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/concrete_method_over_forwarder_in_mixin_application.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/concrete_method_over_forwarder_in_mixin_application.dart.weak.outline.expect @@ -66,8 +66,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:10:3 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:10:3 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:10:3 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:10:3 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:17:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:17:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:17:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///concrete_method_over_forwarder_in_mixin_application.dart:17:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 11, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/default_argument_values.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/default_argument_values.dart.weak.outline.expect index 846c39af6e5..78f996e612e 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/default_argument_values.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/default_argument_values.dart.weak.outline.expect @@ -32,11 +32,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:21:10 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:21:10 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:21:10 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:21:10 -> SymbolConstant(#bar) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:22:7 -> SymbolConstant(#hest) -Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:22:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///default_argument_values.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> SymbolConstant(#bar) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> SymbolConstant(#hest) +Evaluated: ListLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///default_argument_values.dart:25:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 22, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/duplicated_abstract_method.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/duplicated_abstract_method.dart.weak.outline.expect index 6ceff7c1238..2c8f4d85eac 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/duplicated_abstract_method.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/duplicated_abstract_method.dart.weak.outline.expect @@ -54,8 +54,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:10:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:10:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:10:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:10:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:17:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:17:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:17:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///duplicated_abstract_method.dart:17:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.expect b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.expect index 9966f8743e8..b079e10d2db 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.expect @@ -63,16 +63,16 @@ class E extends core::Object implements for::D { abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateGetter() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder method /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateMethod() → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateSetter(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder get _privateGetter() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder get _privateField() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder method _privateMethod() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateSetter(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateField(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))); } class F extends self::E { synthetic constructor •() → self::F* diff --git a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.modular.expect b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.modular.expect index 9966f8743e8..b079e10d2db 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.modular.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.modular.expect @@ -63,16 +63,16 @@ class E extends core::Object implements for::D { abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateGetter() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder method /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateMethod() → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateSetter(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder get _privateGetter() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder get _privateField() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder method _privateMethod() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateSetter(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateField(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))); } class F extends self::E { synthetic constructor •() → self::F* diff --git a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.outline.expect index 8be6aa2b5a6..8e67c61ddb4 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.outline.expect @@ -60,16 +60,16 @@ class E extends core::Object implements for::D { abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateGetter() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#_privateGetter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#_privateField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder method /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateMethod() → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#_privateMethod, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateSetter(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#_privateSetter=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#_privateField=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder get _privateGetter() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_privateGetter, 1, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder get _privateField() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_privateField, 1, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder method _privateMethod() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_privateMethod, 0, const [], const [], core::Map::unmodifiable(const {}))); + no-such-method-forwarder set _privateSetter(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_privateSetter=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))); + no-such-method-forwarder set _privateField(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_privateField=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))); } class F extends self::E { synthetic constructor •() → self::F* @@ -103,33 +103,33 @@ abstract class D extends core::Object { Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:12:11 -> SymbolConstant(#bar) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:12:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:12:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:12:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:13:8 -> SymbolConstant(#baz) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:13:8 -> ListConstant(const []) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:13:8 -> SymbolConstant(#y) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:13:8 -> SymbolConstant(#z) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:11:12 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:11:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:11:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:7:11 -> SymbolConstant(#_privateGetter) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:7:11 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:7:11 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:7:11 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> SymbolConstant(#_privateField) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:9:8 -> SymbolConstant(#_privateMethod) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:9:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:9:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:9:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:8:12 -> SymbolConstant(#_privateSetter=) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:8:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:8:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> SymbolConstant(#_privateField=) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation_lib.dart:6:7 -> MapConstant(const {}) -Extra constant evaluation: evaluated: 79, effectively constant: 29 +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> SymbolConstant(#bar) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> SymbolConstant(#baz) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> ListConstant(const []) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> SymbolConstant(#y) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> SymbolConstant(#z) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:16:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> SymbolConstant(#_privateGetter) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> SymbolConstant(#_privateField) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> SymbolConstant(#_privateMethod) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> SymbolConstant(#_privateSetter=) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> SymbolConstant(#_privateField=) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarder_propagation.dart:22:7 -> MapConstant(const {}) +Extra constant evaluation: evaluated: 82, effectively constant: 29 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.transformed.expect index 184900a6606..014731be645 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/forwarder_propagation.dart.weak.transformed.expect @@ -63,16 +63,16 @@ class E extends core::Object implements for::D { abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateGetter() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder get /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField() → core::int* - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} core::int*; - no-such-method-forwarder method /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateMethod() → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateSetter(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; - no-such-method-forwarder set /* from org-dartlang-testcase:///forwarder_propagation_lib.dart */ _privateField(core::int* value) → void - return this.{self::E::noSuchMethod}(new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder get _privateGetter() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C10, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder get _privateField() → core::int* + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C11, 1, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder method _privateMethod() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C12, 0, #C3, #C4, core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateSetter(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C13, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))); + no-such-method-forwarder set _privateField(core::int* value) → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C14, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))); } class F extends self::E { synthetic constructor •() → self::F* diff --git a/pkg/front_end/testcases/no_such_method_forwarders/forwarders_not_assumed_from_mixin.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/forwarders_not_assumed_from_mixin.dart.weak.outline.expect index 59617d9de5a..f288865ad23 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/forwarders_not_assumed_from_mixin.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/forwarders_not_assumed_from_mixin.dart.weak.outline.expect @@ -61,12 +61,12 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:10:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:13:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:13:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:13:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:13:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:17:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:17:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:17:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///forwarders_not_assumed_from_mixin.dart:17:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 18, effectively constant: 8 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.weak.outline.expect index ee2838607cb..6745a534c60 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_concrete.dart.weak.outline.expect @@ -44,8 +44,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:16:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:16:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:16:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:16:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:19:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:19:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:19:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_concrete.dart:19:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.weak.outline.expect index a3f58751e78..64325c9d06a 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/interface_with_nsm.dart.weak.outline.expect @@ -87,12 +87,12 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:15:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:22:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:22:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:22:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:22:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:24:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:24:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:24:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///interface_with_nsm.dart:24:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 28, effectively constant: 12 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/multiple_abstract_setters.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/multiple_abstract_setters.dart.weak.outline.expect index 18495ea0642..cc7c78695d1 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/multiple_abstract_setters.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/multiple_abstract_setters.dart.weak.outline.expect @@ -80,11 +80,11 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:17:12 -> SymbolConstant(#bar) -Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:17:12 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:17:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:17:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:16:12 -> SymbolConstant(#foo=) -Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:16:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:16:12 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> SymbolConstant(#bar) +Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> SymbolConstant(#foo=) +Evaluated: ListLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///multiple_abstract_setters.dart:20:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 19, effectively constant: 7 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes.dart.weak.outline.expect index 3a87a235415..557b2d3c574 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes.dart.weak.outline.expect @@ -29,8 +29,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:13:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:13:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:13:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:13:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:16:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:16:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:16:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes.dart:16:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes_chain.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes_chain.dart.weak.outline.expect index d40238012d4..7d46c292c51 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes_chain.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/no_forwarders_for_abstract_classes_chain.dart.weak.outline.expect @@ -37,8 +37,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:14:8 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:14:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:14:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:14:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:21:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:21:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:21:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_forwarders_for_abstract_classes_chain.dart:21:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.expect index 00429c3658a..a29712dd0b3 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.expect @@ -25,8 +25,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Bar* : super self::Foo::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Baz* @@ -34,8 +34,8 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.modular.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.modular.expect index 00429c3658a..a29712dd0b3 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.modular.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.modular.expect @@ -25,8 +25,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Bar* : super self::Foo::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Baz* @@ -34,8 +34,8 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.outline.expect index f92373e7289..c0f5446005b 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.outline.expect @@ -23,16 +23,16 @@ abstract class Foo extends core::Object { class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Bar* ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#_hest, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_hest, 0, const [], const [], core::Map::unmodifiable(const {}))); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Baz* ; method _hest() → dynamic ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#_hest, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#_hest, 0, const [], const [], core::Map::unmodifiable(const {}))); } static method main() → dynamic ; @@ -61,12 +61,12 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> SymbolConstant(#_hest) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> SymbolConstant(#_hest) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///private_module.dart:11:8 -> MapConstant(const {}) -Extra constant evaluation: evaluated: 16, effectively constant: 8 +Evaluated: SymbolLiteral @ org-dartlang-testcase:///private.dart:16:7 -> SymbolConstant(#_hest) +Evaluated: ListLiteral @ org-dartlang-testcase:///private.dart:16:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///private.dart:16:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///private.dart:16:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///private.dart:18:7 -> SymbolConstant(#_hest) +Evaluated: ListLiteral @ org-dartlang-testcase:///private.dart:18:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///private.dart:18:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///private.dart:18:7 -> MapConstant(const {}) +Extra constant evaluation: evaluated: 18, effectively constant: 8 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.transformed.expect b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.transformed.expect index 00429c3658a..a29712dd0b3 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private.dart.weak.transformed.expect @@ -25,8 +25,8 @@ class Bar extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Bar* : super self::Foo::•() ; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } class Baz extends self::Foo implements pri::Fisk { synthetic constructor •() → self::Baz* @@ -34,8 +34,8 @@ class Baz extends self::Foo implements pri::Fisk { ; method _hest() → dynamic return null; - no-such-method-forwarder method /* from org-dartlang-testcase:///private_module.dart */ _hest() → void - return this.{self::Foo::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))){(core::Invocation*) →* dynamic}; + no-such-method-forwarder method _hest() → void + return throw core::NoSuchMethodError::withInvocation(this, new core::_InvocationMirror::_withType(#C1, 0, #C2, #C3, core::Map::unmodifiable(#C4))); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.weak.outline.expect index 29e41370ca6..da31070dca2 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/private_same.dart.weak.outline.expect @@ -30,8 +30,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_same.dart:10:8 -> SymbolConstant(#_foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_same.dart:10:8 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///private_same.dart:10:8 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///private_same.dart:10:8 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///private_same.dart:13:7 -> SymbolConstant(#_foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///private_same.dart:13:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///private_same.dart:13:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///private_same.dart:13:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 8, effectively constant: 4 diff --git a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.weak.outline.expect b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.weak.outline.expect index 037de6a1e10..dacb9740a32 100644 --- a/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.weak.outline.expect +++ b/pkg/front_end/testcases/no_such_method_forwarders/subst_on_forwarder.dart.weak.outline.expect @@ -59,8 +59,8 @@ static method main() → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:10:5 -> SymbolConstant(#foo) -Evaluated: ListLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:10:5 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:10:5 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:10:5 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:19:7 -> SymbolConstant(#foo) +Evaluated: ListLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:19:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:19:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///subst_on_forwarder.dart:19:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 11, effectively constant: 4 diff --git a/pkg/front_end/testcases/variance/generic_covariance_sound_variance.dart.weak.outline.expect b/pkg/front_end/testcases/variance/generic_covariance_sound_variance.dart.weak.outline.expect index ce7effd7181..1467965a55d 100644 --- a/pkg/front_end/testcases/variance/generic_covariance_sound_variance.dart.weak.outline.expect +++ b/pkg/front_end/testcases/variance/generic_covariance_sound_variance.dart.weak.outline.expect @@ -88,17 +88,17 @@ static method expect(dynamic expected, dynamic actual) → dynamic Extra constant evaluation status: -Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> SymbolConstant(#x) -Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:23:5 -> SymbolConstant(#method) -Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:23:5 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:23:5 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:24:12 -> SymbolConstant(#y=) -Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:24:12 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:24:12 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> SymbolConstant(#x=) -Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:22:6 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> SymbolConstant(#x) +Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> SymbolConstant(#method) +Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> SymbolConstant(#y=) +Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> SymbolConstant(#x=) +Evaluated: ListLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///generic_covariance_sound_variance.dart:50:7 -> MapConstant(const {}) Extra constant evaluation: evaluated: 42, effectively constant: 13 diff --git a/pkg/kernel/lib/core_types.dart b/pkg/kernel/lib/core_types.dart index 4533b55b41c..435684cabc8 100644 --- a/pkg/kernel/lib/core_types.dart +++ b/pkg/kernel/lib/core_types.dart @@ -201,9 +201,9 @@ class CoreTypes { /// The `dart:mirrors` library, or `null` if the component does not use it. late final Library? mirrorsLibrary = index.tryGetLibrary('dart:mirrors'); - late final Constructor noSuchMethodErrorDefaultConstructor = + late final Procedure noSuchMethodErrorDefaultConstructor = // TODO(regis): Replace 'withInvocation' with '' after dart2js is fixed. - index.getConstructor('dart:core', 'NoSuchMethodError', 'withInvocation'); + index.getProcedure('dart:core', 'NoSuchMethodError', 'withInvocation'); late final Class deprecatedNullClass = index.getClass('dart:core', 'Null'); diff --git a/pkg/vm/lib/target/vm.dart b/pkg/vm/lib/target/vm.dart index 8a0be3a1667..a5402c647c0 100644 --- a/pkg/vm/lib/target/vm.dart +++ b/pkg/vm/lib/target/vm.dart @@ -293,7 +293,7 @@ class VmTarget extends Target { isStatic: isStatic, isConstructor: isConstructor, isTopLevel: isTopLevel); - return new ConstructorInvocation( + return new StaticInvocation( coreTypes.noSuchMethodErrorDefaultConstructor, new Arguments([ receiver, diff --git a/pkg/vm/testcases/transformations/type_flow/transformer/regress_flutter81068.dart.expect b/pkg/vm/testcases/transformations/type_flow/transformer/regress_flutter81068.dart.expect index 963f8c2d169..3578aaff395 100644 --- a/pkg/vm/testcases/transformations/type_flow/transformer/regress_flutter81068.dart.expect +++ b/pkg/vm/testcases/transformations/type_flow/transformer/regress_flutter81068.dart.expect @@ -16,11 +16,11 @@ class B extends self::A impleme ; [@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasTearOffUses:false,methodOrSetterSelectorId:1,getterSelectorId:2] method noSuchMethod(core::Invocation i) → dynamic return throw "Not implemented"; -[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:3,getterSelectorId:4] no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError) → asy::Future +[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:3,getterSelectorId:4] no-such-method-forwarder method catchError(core::Function onError) → asy::Future return [@vm.direct-call.metadata=#lib::B.noSuchMethod] [@vm.inferred-type.metadata=! (skip check)] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withType(#C1, 0, #C2, [@vm.inferred-type.metadata=dart.core::_ImmutableList] core::List::unmodifiable([@vm.inferred-type.metadata=dart.core::_GrowableList] core::_GrowableList::_literal1(onError)), [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable({#C3: #C4}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; -[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:5,getterSelectorId:6] no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future +[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:5,getterSelectorId:6] no-such-method-forwarder method whenComplete(() → FutureOraction) → asy::Future return [@vm.direct-call.metadata=#lib::B.noSuchMethod] [@vm.inferred-type.metadata=! (skip check)] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C2, [@vm.inferred-type.metadata=dart.core::_ImmutableList] core::List::unmodifiable([@vm.inferred-type.metadata=dart.core::_GrowableList] core::_GrowableList::_literal1(action)), [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable(#C6))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; -[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:7,getterSelectorId:8] no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::B::T%) → FutureOronValue, {core::Function? onError = #C4}) → asy::Future +[@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:7,getterSelectorId:8] no-such-method-forwarder method then((self::B::T%) → FutureOronValue, {core::Function? onError = #C4}) → asy::Future return [@vm.direct-call.metadata=#lib::B.noSuchMethod] [@vm.inferred-type.metadata=! (skip check)] this.{self::B::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, [@vm.inferred-type.metadata=dart.core::_ImmutableList] core::List::unmodifiable([@vm.inferred-type.metadata=dart.core::_GrowableList] core::_GrowableList::_literal1(self::B::then::R%)), [@vm.inferred-type.metadata=dart.core::_ImmutableList] core::List::unmodifiable([@vm.inferred-type.metadata=dart.core::_GrowableList] core::_GrowableList::_literal1(onValue)), [@vm.inferred-type.metadata=dart.collection::UnmodifiableMapView] core::Map::unmodifiable({#C8: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; } static method createB() → self::B diff --git a/tests/language/inference_update_2/no_such_method_restriction_disabled_lib.dart b/tests/language/inference_update_2/no_such_method_restriction_disabled_lib.dart new file mode 100644 index 00000000000..887420e2e68 --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_disabled_lib.dart @@ -0,0 +1,103 @@ +// Copyright (c) 2022, 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. + +// Library used by `no_such_method_restriction_disabled_test.dart`. + +// @dart=2.17 + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +class Nsm { + int otherNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return otherNsmCount++; + } +} + +class Stubs implements Interface { + int stubsNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return stubsNsmCount++; + } +} diff --git a/tests/language/inference_update_2/no_such_method_restriction_disabled_test.dart b/tests/language/inference_update_2/no_such_method_restriction_disabled_test.dart new file mode 100644 index 00000000000..fec4e7a075d --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_disabled_test.dart @@ -0,0 +1,413 @@ +// Copyright (c) 2022, 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. + +// Tests that the behavior of forwarding stubs to call noSuchMethod is +// restricted to public members and members from the same library; forwarding +// stubs for private members from other libraries always throw. +// +// Without this, field promotion would not be sound. For example, in the code +// below, each attempt to get `_i` from an instance of class `B` would result in +// an invocation of `B.noSuchMethod`, so evaluation of `a._i` at (1) would yield +// `0`, and evaluation of `a._i` at (2) would yield `null`. +// +// main.dart: +// import 'other.dart'; +// class B implements A { +// bool b = false; +// @override +// dynamic noSuchMethod(Invocation invocation) => (b = !b) ? 0 : null; +// } +// main() => foo(new B()); +// other.dart: +// class A { +// final int? _i; +// A(this._i); +// } +// void foo(A a) { +// if (a._i != null) { // (1) +// print(a._i + 1); // (2) +// } +// } +// +// Whereas with the restriction, any attempt to get `_i` from an instance of +// class `B` would result in an exception, so the code would never reach (2). +// +// Since this behavior involves interactions among libraries, we have to think +// carefully about how it is affected by language versioning. There are two +// issues to consider: +// +// 1. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the class +// that's causing the forwarding stub to be generated? We need to answer +// this question with a "yes", otherwise a class declaration in a library +// with an older language version could still ruin the soundness of field +// promotion in some other library. +// +// 2. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the private +// member in question? Our answer to this question doesn't affect soundness, +// because field promotion can't happen in libraries for which the language +// feature is disabled. However, we still answer "yes", because otherwise an +// attempt to upgrade to a newer language version in one library might cause +// unexpected behavior changes in other libraries that import it, and we +// don't want that to happen. +// +// This file covers cases where the language feature "inference-update-2" is +// disabled. + +// @dart=2.17 + +import 'package:expect/expect.dart'; + +import 'no_such_method_restriction_disabled_lib.dart' as lib; + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +/// The tests in this class cover the case where the members are in the same +/// library as the forwarding stubs. All member invocations should be +/// dispatched to noSuchMethod. +class Local implements Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = Local(); + Expect.equals(0, Interface.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPublic() { + var x = Local(); + Expect.equals(0, Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMethod and the other +/// members are in the same library as the forwarding stubs, but that library is +/// not the same as the library containing this class. All member invocations +/// should be dispatched to noSuchMethod. +class RemoteStubs extends lib.Stubs { + static void testPrivate() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } +} + +/// The tests in this class cover the case where noSuchMember is local, but the +/// other members are in a different library from the forwarding stubs. All +/// public member invocations should be dispatched to noSuchMethod; all private +/// member invocations should throw. +class LocalNsm implements lib.Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = LocalNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = LocalNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMember and the other +/// members are in a different library from the forwarding stubs. All public +/// member invocations should be dispatched to noSuchMethod; all private member +/// invocations should throw. +class RemoteNsm extends lib.Nsm implements lib.Interface { + static void testPrivate() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + } +} + +main() { + Local.testPrivate(); + Local.testPublic(); + Local.testPrivateDynamic(); + Local.testPublicDynamic(); + RemoteStubs.testPrivate(); + RemoteStubs.testPublic(); + RemoteStubs.testPrivateDynamic(); + RemoteStubs.testPublicDynamic(); + LocalNsm.testPrivate(); + LocalNsm.testPublic(); + LocalNsm.testPrivateDynamic(); + LocalNsm.testPublicDynamic(); + RemoteNsm.testPrivate(); + RemoteNsm.testPublic(); + RemoteNsm.testPrivateDynamic(); + RemoteNsm.testPublicDynamic(); +} diff --git a/tests/language/inference_update_2/no_such_method_restriction_enabled_lib.dart b/tests/language/inference_update_2/no_such_method_restriction_enabled_lib.dart new file mode 100644 index 00000000000..3568189fa00 --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_enabled_lib.dart @@ -0,0 +1,101 @@ +// Copyright (c) 2022, 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. + +// Library used by `no_such_method_restriction_enabled_test.dart`. + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +class Nsm { + int otherNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return otherNsmCount++; + } +} + +class Stubs implements Interface { + int stubsNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return stubsNsmCount++; + } +} diff --git a/tests/language/inference_update_2/no_such_method_restriction_enabled_test.dart b/tests/language/inference_update_2/no_such_method_restriction_enabled_test.dart new file mode 100644 index 00000000000..791b9c50d37 --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_enabled_test.dart @@ -0,0 +1,413 @@ +// Copyright (c) 2022, 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. + +// Tests that the behavior of forwarding stubs to call noSuchMethod is +// restricted to public members and members from the same library; forwarding +// stubs for private members from other libraries always throw. +// +// Without this, field promotion would not be sound. For example, in the code +// below, each attempt to get `_i` from an instance of class `B` would result in +// an invocation of `B.noSuchMethod`, so evaluation of `a._i` at (1) would yield +// `0`, and evaluation of `a._i` at (2) would yield `null`. +// +// main.dart: +// import 'other.dart'; +// class B implements A { +// bool b = false; +// @override +// dynamic noSuchMethod(Invocation invocation) => (b = !b) ? 0 : null; +// } +// main() => foo(new B()); +// other.dart: +// class A { +// final int? _i; +// A(this._i); +// } +// void foo(A a) { +// if (a._i != null) { // (1) +// print(a._i + 1); // (2) +// } +// } +// +// Whereas with the restriction, any attempt to get `_i` from an instance of +// class `B` would result in an exception, so the code would never reach (2). +// +// Since this behavior involves interactions among libraries, we have to think +// carefully about how it is affected by language versioning. There are two +// issues to consider: +// +// 1. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the class +// that's causing the forwarding stub to be generated? We need to answer +// this question with a "yes", otherwise a class declaration in a library +// with an older language version could still ruin the soundness of field +// promotion in some other library. +// +// 2. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the private +// member in question? Our answer to this question doesn't affect soundness, +// because field promotion can't happen in libraries for which the language +// feature is disabled. However, we still answer "yes", because otherwise an +// attempt to upgrade to a newer language version in one library might cause +// unexpected behavior changes in other libraries that import it, and we +// don't want that to happen. +// +// This file covers cases where the language feature "inference-update-2" is +// enabled. + +// SharedOptions=--enable-experiment=inference-update-2 + +import 'package:expect/expect.dart'; + +import 'no_such_method_restriction_enabled_lib.dart' as lib; + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +/// The tests in this class cover the case where the members are in the same +/// library as the forwarding stubs. All member invocations should be +/// dispatched to noSuchMethod. +class Local implements Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = Local(); + Expect.equals(0, Interface.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPublic() { + var x = Local(); + Expect.equals(0, Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMethod and the other +/// members are in the same library as the forwarding stubs, but that library is +/// not the same as the library containing this class. All member invocations +/// should be dispatched to noSuchMethod. +class RemoteStubs extends lib.Stubs { + static void testPrivate() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } +} + +/// The tests in this class cover the case where noSuchMember is local, but the +/// other members are in a different library from the forwarding stubs. All +/// public member invocations should be dispatched to noSuchMethod; all private +/// member invocations should throw. +class LocalNsm implements lib.Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = LocalNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = LocalNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMember and the other +/// members are in a different library from the forwarding stubs. All public +/// member invocations should be dispatched to noSuchMethod; all private member +/// invocations should throw. +class RemoteNsm extends lib.Nsm implements lib.Interface { + static void testPrivate() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + } +} + +main() { + Local.testPrivate(); + Local.testPublic(); + Local.testPrivateDynamic(); + Local.testPublicDynamic(); + RemoteStubs.testPrivate(); + RemoteStubs.testPublic(); + RemoteStubs.testPrivateDynamic(); + RemoteStubs.testPublicDynamic(); + LocalNsm.testPrivate(); + LocalNsm.testPublic(); + LocalNsm.testPrivateDynamic(); + LocalNsm.testPublicDynamic(); + RemoteNsm.testPrivate(); + RemoteNsm.testPublic(); + RemoteNsm.testPrivateDynamic(); + RemoteNsm.testPublicDynamic(); +} diff --git a/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart new file mode 100644 index 00000000000..a69c6d190ef --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2022, 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. + +// Library used by 'no_such_method_restriction_stack_trace_test.dart' + +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +class Test extends Nsm implements Interface {} diff --git a/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart new file mode 100644 index 00000000000..7f03ce41890 --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart @@ -0,0 +1,20 @@ +// Copyright (c) 2022, 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. + +// Library used by 'no_such_method_restriction_stack_trace_test.dart' + +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +class Nsm { + @override + noSuchMethod(Invocation invocation) {} +} + +class Interface { + void _privateMethod() {} +} + +void callPrivateMethod(Interface x) { + x._privateMethod(); +} diff --git a/tests/language/inference_update_2/no_such_method_restriction_stack_trace_test.dart b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_test.dart new file mode 100644 index 00000000000..d34dec87c2d --- /dev/null +++ b/tests/language/inference_update_2/no_such_method_restriction_stack_trace_test.dart @@ -0,0 +1,28 @@ +// Copyright (c) 2022, 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. + +// Tests that when a noSuchMethod forwarder throws an exception due to the fact +// that the forwarding stub is for a private member of another library, the +// resulting stack trace points to the class for which the noSuchMethod +// forwarder was created. + +import 'package:expect/expect.dart'; + +import 'no_such_method_restriction_stack_trace_lib1.dart'; +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +main() { + try { + callPrivateMethod(Test()); + } on NoSuchMethodError catch (e, st) { + var stackString = st.toString(); + if (stackString.contains('.js:')) { + // Obfuscated Javascript stacktrace. We don't expect to be able to + // resolve Dart files from this stack trace, so just let the test pass. + } else { + Expect.contains( + 'no_such_method_restriction_stack_trace_lib1.dart', st.toString()); + } + } +} diff --git a/tests/language/nonfunction_type_aliases/private_names/private_name_implementation_test.dart b/tests/language/nonfunction_type_aliases/private_names/private_name_implementation_test.dart index e7a8490c20f..41040dbe22f 100644 --- a/tests/language/nonfunction_type_aliases/private_names/private_name_implementation_test.dart +++ b/tests/language/nonfunction_type_aliases/private_names/private_name_implementation_test.dart @@ -2,7 +2,6 @@ // 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. - // Test that private names exported via public typedefs allow implementation import "package:expect/expect.dart"; diff --git a/tests/language_2/inference_update_2/no_such_method_restriction_disabled_lib.dart b/tests/language_2/inference_update_2/no_such_method_restriction_disabled_lib.dart new file mode 100644 index 00000000000..d54773d4ef4 --- /dev/null +++ b/tests/language_2/inference_update_2/no_such_method_restriction_disabled_lib.dart @@ -0,0 +1,103 @@ +// Copyright (c) 2022, 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. + +// Library used by `no_such_method_restriction_disabled_test.dart`. + +// @dart=2.9 + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +class Nsm { + int otherNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return otherNsmCount++; + } +} + +class Stubs implements Interface { + int stubsNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return stubsNsmCount++; + } +} diff --git a/tests/language_2/inference_update_2/no_such_method_restriction_disabled_test.dart b/tests/language_2/inference_update_2/no_such_method_restriction_disabled_test.dart new file mode 100644 index 00000000000..fa1387f45a4 --- /dev/null +++ b/tests/language_2/inference_update_2/no_such_method_restriction_disabled_test.dart @@ -0,0 +1,413 @@ +// Copyright (c) 2022, 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. + +// Tests that the behavior of forwarding stubs to call noSuchMethod is +// restricted to public members and members from the same library; forwarding +// stubs for private members from other libraries always throw. +// +// Without this, field promotion would not be sound. For example, in the code +// below, each attempt to get `_i` from an instance of class `B` would result in +// an invocation of `B.noSuchMethod`, so evaluation of `a._i` at (1) would yield +// `0`, and evaluation of `a._i` at (2) would yield `null`. +// +// main.dart: +// import 'other.dart'; +// class B implements A { +// bool b = false; +// @override +// dynamic noSuchMethod(Invocation invocation) => (b = !b) ? 0 : null; +// } +// main() => foo(new B()); +// other.dart: +// class A { +// final int? _i; +// A(this._i); +// } +// void foo(A a) { +// if (a._i != null) { // (1) +// print(a._i + 1); // (2) +// } +// } +// +// Whereas with the restriction, any attempt to get `_i` from an instance of +// class `B` would result in an exception, so the code would never reach (2). +// +// Since this behavior involves interactions among libraries, we have to think +// carefully about how it is affected by language versioning. There are two +// issues to consider: +// +// 1. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the class +// that's causing the forwarding stub to be generated? We need to answer +// this question with a "yes", otherwise a class declaration in a library +// with an older language version could still ruin the soundness of field +// promotion in some other library. +// +// 2. Should the forwarding stub throw even if the language feature +// "inference-update-2" is disabled in the library containing the private +// member in question? Our answer to this question doesn't affect soundness, +// because field promotion can't happen in libraries for which the language +// feature is disabled. However, we still answer "yes", because otherwise an +// attempt to upgrade to a newer language version in one library might cause +// unexpected behavior changes in other libraries that import it, and we +// don't want that to happen. +// +// This file covers cases where the language feature "inference-update-2" is +// disabled. + +// @dart=2.9 + +import 'package:expect/expect.dart'; + +import 'no_such_method_restriction_disabled_lib.dart' as lib; + +class Interface { + static int interfaceCount = 0; + + int _privateField = 100; + + int get _privateGetter { + interfaceCount++; + return 101; + } + + set _privateSetter(int value) { + interfaceCount++; + } + + int _privateMethod() { + interfaceCount++; + return 102; + } + + int publicField = 103; + + int get publicGetter { + interfaceCount++; + return 104; + } + + set publicSetter(int value) { + interfaceCount++; + } + + int publicMethod() { + interfaceCount++; + return 105; + } + + static int getPrivateField(Interface x) => x._privateField; + + static void setPrivateField(Interface x) => x._privateField = 106; + + static int callPrivateGetter(Interface x) => x._privateGetter; + + static void callPrivateSetter(Interface x) => x._privateSetter = 107; + + static int callPrivateMethod(Interface x) => x._privateMethod(); + + static int getPublicField(Interface x) => x.publicField; + + static void setPublicField(Interface x) => x.publicField = 108; + + static int callPublicGetter(Interface x) => x.publicGetter; + + static void callPublicSetter(Interface x) => x.publicSetter = 109; + + static int callPublicMethod(Interface x) => x.publicMethod(); +} + +class Dynamic { + static int getPrivateField(dynamic x) => x._privateField; + + static void setPrivateField(dynamic x) => x._privateField = 103; + + static int callPrivateGetter(dynamic x) => x._privateGetter; + + static void callPrivateSetter(dynamic x) => x._privateSetter = 104; + + static int callPrivateMethod(dynamic x) => x._privateMethod(); + + static int getPublicField(dynamic x) => x.publicField; + + static void setPublicField(dynamic x) => x.publicField = 108; + + static int callPublicGetter(dynamic x) => x.publicGetter; + + static void callPublicSetter(dynamic x) => x.publicSetter = 109; + + static int callPublicMethod(dynamic x) => x.publicMethod(); +} + +/// The tests in this class cover the case where the members are in the same +/// library as the forwarding stubs. All member invocations should be +/// dispatched to noSuchMethod. +class Local implements Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = Local(); + Expect.equals(0, Interface.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPublic() { + var x = Local(); + Expect.equals(0, Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPrivateField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPrivateField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPrivateGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPrivateSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPrivateMethod(x)); + Expect.equals(5, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = Local(); + Expect.equals(0, Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMethod and the other +/// members are in the same library as the forwarding stubs, but that library is +/// not the same as the library containing this class. All member invocations +/// should be dispatched to noSuchMethod. +class RemoteStubs extends lib.Stubs { + static void testPrivate() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPrivateField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPrivateField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPrivateGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPrivateSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPrivateMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteStubs(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.stubsNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.stubsNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.stubsNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.stubsNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.stubsNsmCount); + } +} + +/// The tests in this class cover the case where noSuchMember is local, but the +/// other members are in a different library from the forwarding stubs. All +/// public member invocations should be dispatched to noSuchMethod; all private +/// member invocations should throw. +class LocalNsm implements lib.Interface { + int _localNsmCount = 0; + + @override + noSuchMethod(Invocation invocation) { + return _localNsmCount++; + } + + static void testPrivate() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = LocalNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = LocalNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x._localNsmCount); + } + + static void testPublicDynamic() { + var x = LocalNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x._localNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x._localNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x._localNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x._localNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x._localNsmCount); + } +} + +/// The tests in this class cover the case where both noSuchMember and the other +/// members are in a different library from the forwarding stubs. All public +/// member invocations should be dispatched to noSuchMethod; all private member +/// invocations should throw. +class RemoteNsm extends lib.Nsm implements lib.Interface { + static void testPrivate() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Interface.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Interface.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPublic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Interface.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Interface.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Interface.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Interface.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Interface.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + Expect.equals(0, lib.Interface.interfaceCount); + } + + static void testPrivateDynamic() { + var x = RemoteNsm(); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.getPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.setPrivateField(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateGetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateSetter(x)); + Expect.throwsNoSuchMethodError(() => lib.Dynamic.callPrivateMethod(x)); + Expect.equals(0, x.otherNsmCount); + } + + static void testPublicDynamic() { + var x = RemoteNsm(); + Expect.equals(0, lib.Dynamic.getPublicField(x)); + Expect.equals(1, x.otherNsmCount); + lib.Dynamic.setPublicField(x); + Expect.equals(2, x.otherNsmCount); + Expect.equals(2, lib.Dynamic.callPublicGetter(x)); + Expect.equals(3, x.otherNsmCount); + lib.Dynamic.callPublicSetter(x); + Expect.equals(4, x.otherNsmCount); + Expect.equals(4, lib.Dynamic.callPublicMethod(x)); + Expect.equals(5, x.otherNsmCount); + } +} + +main() { + Local.testPrivate(); + Local.testPublic(); + Local.testPrivateDynamic(); + Local.testPublicDynamic(); + RemoteStubs.testPrivate(); + RemoteStubs.testPublic(); + RemoteStubs.testPrivateDynamic(); + RemoteStubs.testPublicDynamic(); + LocalNsm.testPrivate(); + LocalNsm.testPublic(); + LocalNsm.testPrivateDynamic(); + LocalNsm.testPublicDynamic(); + RemoteNsm.testPrivate(); + RemoteNsm.testPublic(); + RemoteNsm.testPrivateDynamic(); + RemoteNsm.testPublicDynamic(); +} diff --git a/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart new file mode 100644 index 00000000000..1b981e4acbd --- /dev/null +++ b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib1.dart @@ -0,0 +1,11 @@ +// Copyright (c) 2022, 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. + +// Library used by 'no_such_method_restriction_stack_trace_test.dart' + +// @dart=2.9 + +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +class Test extends Nsm implements Interface {} diff --git a/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart new file mode 100644 index 00000000000..a6d6c4183ca --- /dev/null +++ b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_lib2.dart @@ -0,0 +1,22 @@ +// Copyright (c) 2022, 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. + +// Library used by 'no_such_method_restriction_stack_trace_test.dart' + +// @dart=2.9 + +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +class Nsm { + @override + noSuchMethod(Invocation invocation) {} +} + +class Interface { + void _privateMethod() {} +} + +void callPrivateMethod(Interface x) { + x._privateMethod(); +} diff --git a/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_test.dart b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_test.dart new file mode 100644 index 00000000000..640a8e671b6 --- /dev/null +++ b/tests/language_2/inference_update_2/no_such_method_restriction_stack_trace_test.dart @@ -0,0 +1,30 @@ +// Copyright (c) 2022, 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. + +// Tests that when a noSuchMethod forwarder throws an exception due to the fact +// that the forwarding stub is for a private member of another library, the +// resulting stack trace points to the class for which the noSuchMethod +// forwarder was created. + +// @dart=2.9 + +import 'package:expect/expect.dart'; + +import 'no_such_method_restriction_stack_trace_lib1.dart'; +import 'no_such_method_restriction_stack_trace_lib2.dart'; + +main() { + try { + callPrivateMethod(Test()); + } on NoSuchMethodError catch (e, st) { + var stackString = st.toString(); + if (stackString.contains('.js:')) { + // Obfuscated Javascript stacktrace. We don't expect to be able to + // resolve Dart files from this stack trace, so just let the test pass. + } else { + Expect.contains( + 'no_such_method_restriction_stack_trace_lib1.dart', st.toString()); + } + } +}