| library /*isNonNullableByDefault*/; |
| import self as self; |
| import "dart:core" as core; |
| import "dart:async" as asy; |
| import "dart:_internal" as _in; |
| |
| static field void v1 = self::method(); |
| static field void v2 = self::method(); |
| static field core::List<void> l1 = core::_GrowableList::_literal1<void>(self::method()); |
| static field core::List<void> l2 = core::_GrowableList::_literal1<void>(self::method()); |
| static method method() → void {} |
| static method test(core::Iterable<void> iterable, asy::Stream<void> stream) → dynamic /* originally async */ { |
| final asy::_Future<dynamic> :async_future = new asy::_Future::•<dynamic>(); |
| core::bool* :is_sync = false; |
| dynamic :return_value; |
| (dynamic) → dynamic :async_op_then; |
| (core::Object, core::StackTrace) → dynamic :async_op_error; |
| core::int :await_jump_var = 0; |
| dynamic :await_ctx_var; |
| dynamic :saved_try_context_var0; |
| dynamic :saved_try_context_var1; |
| dynamic :exception0; |
| dynamic :stack_trace0; |
| function :async_op(dynamic :result_or_exception, dynamic :stack_trace) → dynamic yielding |
| try { |
| #L1: |
| { |
| void v1 = self::method(); |
| void v2 = self::method(); |
| { |
| core::Iterator<void> :sync-for-iterator = iterable.{core::Iterable::iterator}{core::Iterator<void>}; |
| for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { |
| void v3 = :sync-for-iterator.{core::Iterator::current}{void}; |
| {} |
| } |
| } |
| { |
| core::Iterator<void> :sync-for-iterator = iterable.{core::Iterable::iterator}{core::Iterator<void>}; |
| for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { |
| void v4 = :sync-for-iterator.{core::Iterator::current}{void}; |
| {} |
| } |
| } |
| { |
| asy::Stream<void> :stream = stream; |
| asy::_StreamIterator<void>? :for-iterator = new asy::_StreamIterator::•<void>(:stream); |
| try |
| #L2: |
| while (true) { |
| dynamic #t1 = asy::_asyncStarMoveNextHelper(:stream); |
| [yield] let dynamic #t2 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future<core::bool>}, :async_op_then, :async_op_error) in null; |
| if(_in::unsafeCast<core::bool>(:result_or_exception)) { |
| void v5 = :for-iterator.{asy::_StreamIterator::current}{void}; |
| {} |
| } |
| else |
| break #L2; |
| } |
| finally |
| if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription<void>?} == null)) { |
| [yield] let dynamic #t3 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future<dynamic>}, :async_op_then, :async_op_error) in null; |
| :result_or_exception; |
| } |
| } |
| { |
| asy::Stream<void> :stream = stream; |
| asy::_StreamIterator<void>? :for-iterator = new asy::_StreamIterator::•<void>(:stream); |
| try |
| #L3: |
| while (true) { |
| dynamic #t4 = asy::_asyncStarMoveNextHelper(:stream); |
| [yield] let dynamic #t5 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future<core::bool>}, :async_op_then, :async_op_error) in null; |
| if(_in::unsafeCast<core::bool>(:result_or_exception)) { |
| void v6 = :for-iterator.{asy::_StreamIterator::current}{void}; |
| {} |
| } |
| else |
| break #L3; |
| } |
| finally |
| if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription<void>?} == null)) { |
| [yield] let dynamic #t6 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future<dynamic>}, :async_op_then, :async_op_error) in null; |
| :result_or_exception; |
| } |
| } |
| core::List<void> l1 = core::_GrowableList::_literal1<void>(self::method()); |
| core::List<void> l2 = core::_GrowableList::_literal1<void>(self::method()); |
| } |
| asy::_completeWithNoFutureOnAsyncReturn(:async_future, :return_value, :is_sync); |
| return; |
| } |
| on dynamic catch(dynamic exception, core::StackTrace stack_trace) { |
| asy::_completeOnAsyncError(:async_future, exception, stack_trace, :is_sync); |
| } |
| :async_op_then = asy::_asyncThenWrapperHelper(:async_op); |
| :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); |
| :async_op(null, null){() → dynamic}; |
| :is_sync = true; |
| return :async_future; |
| } |
| static method main() → dynamic {} |