blob: dbae52182fead24fb4b042308c14ee0705138623 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
import "dart:async" as asy;
class A extends core::Object {
synthetic constructor •() void
: super core::Object::•()
;
method foo() dynamic
return null;
}
class B extends core::Object {
field self::A a = null;
synthetic constructor •() void
: super core::Object::•()
;
method bar() asy::Future<dynamic> /* originally async */ {
final asy::Completer<dynamic> :completer = asy::Completer::sync<dynamic>();
asy::FutureOr<dynamic> :return_value;
dynamic :async_stack_trace;
dynamic :async_op_then;
dynamic :async_op_error;
dynamic :await_jump_var = 0;
dynamic :await_ctx_var;
function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) dynamic yielding
try {
#L1:
{
:return_value = this.{self::B::a}.foo();
break #L1;
}
:completer.{asy::Completer::complete}(:return_value);
return;
}
on dynamic catch(dynamic :exception, dynamic :stack_trace) {
:completer.{asy::Completer::completeError}(:exception, :stack_trace);
}
:async_stack_trace = asy::_asyncStackTraceHelper(:async_op);
:async_op_then = asy::_asyncThenWrapperHelper(:async_op);
:async_op_error = asy::_asyncErrorWrapperHelper(:async_op);
asy::Future::microtask<dynamic>(:async_op);
return :completer.{asy::Completer::future};
}
}
class C extends core::Object {
field self::B b = new self::B::•();
synthetic constructor •() void
: super core::Object::•()
;
method baz() asy::Future<core::int> /* originally async */ {
final asy::Completer<core::int> :completer = asy::Completer::sync<core::int>();
asy::FutureOr<core::int> :return_value;
dynamic :async_stack_trace;
dynamic :async_op_then;
dynamic :async_op_error;
dynamic :await_jump_var = 0;
dynamic :await_ctx_var;
function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) dynamic yielding
try {
#L2:
{
:return_value = this.{self::C::b}.bar();
break #L2;
}
:completer.{asy::Completer::complete}(:return_value);
return;
}
on dynamic catch(dynamic :exception, dynamic :stack_trace) {
:completer.{asy::Completer::completeError}(:exception, :stack_trace);
}
:async_stack_trace = asy::_asyncStackTraceHelper(:async_op);
:async_op_then = asy::_asyncThenWrapperHelper(:async_op);
:async_op_error = asy::_asyncErrorWrapperHelper(:async_op);
asy::Future::microtask<dynamic>(:async_op);
return :completer.{asy::Completer::future};
}
}
static method main() dynamic {}