OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 import "dart:async" as asy; |
| 5 |
| 6 class A extends core::Object { |
| 7 constructor •() → void |
| 8 : super core::Object::•() |
| 9 ; |
| 10 } |
| 11 class B extends self::A { |
| 12 constructor •() → void |
| 13 : super self::A::•() |
| 14 ; |
| 15 } |
| 16 class C extends self::A { |
| 17 constructor •() → void |
| 18 : super self::A::•() |
| 19 ; |
| 20 } |
| 21 static method main() → dynamic /* originally async */ { |
| 22 final asy::Completer<asy::FutureOr<dynamic>> :completer = asy::Completer::sync
<asy::FutureOr<dynamic>>(); |
| 23 asy::FutureOr<dynamic> :return_value; |
| 24 dynamic :async_op_then; |
| 25 dynamic :async_op_error; |
| 26 dynamic :await_jump_var = 0; |
| 27 dynamic :await_ctx_var; |
| 28 dynamic :saved_try_context_var0; |
| 29 function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]
) → dynamic yielding |
| 30 try { |
| 31 #L1: |
| 32 { |
| 33 asy::Future<self::B> b = asy::Future::value<self::B>(new self::B::•()); |
| 34 asy::Future<self::C> c = asy::Future::value<self::C>(new self::C::•()); |
| 35 core::List<asy::Future<self::A>> lll = <asy::Future<self::A>>[b, c]; |
| 36 asy::_awaitHelper(asy::Future::wait<self::A>(lll), :async_op_then, :asyn
c_op_error, :async_op); |
| 37 [yield] null; |
| 38 core::List<self::A> result = :result; |
| 39 asy::_awaitHelper(asy::Future::wait<self::A>(<asy::Future<self::A>>[b, c
]), :async_op_then, :async_op_error, :async_op); |
| 40 [yield] null; |
| 41 core::List<self::A> result2 = :result; |
| 42 core::List<self::A> list = result; |
| 43 list = result2; |
| 44 } |
| 45 :completer.complete(:return_value); |
| 46 return; |
| 47 } |
| 48 on dynamic catch(dynamic :exception, dynamic :stack_trace) { |
| 49 :completer.completeError(:exception, :stack_trace); |
| 50 } |
| 51 :async_op_then = asy::_asyncThenWrapperHelper(:async_op); |
| 52 :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); |
| 53 asy::Future::microtask<dynamic>(:async_op); |
| 54 return :completer.future; |
| 55 } |
OLD | NEW |