OLD | NEW |
1 library test; | 1 library test; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 static method main() → dynamic { | 5 static method main() → dynamic { |
6 () → core::Iterable<core::num> f = () → core::Iterable<core::num> /* originall
y sync* */ { | 6 () → core::Iterable<core::num> f = () → core::Iterable<core::num> sync* { |
7 dynamic :await_jump_var = 0; | 7 yield 1; |
8 dynamic :await_ctx_var; | 8 yield*<core::num>[3, 4.0]; |
9 function :sync_op(core::Iterator<dynamic> :iterator) → core::bool yielding { | |
10 { | |
11 { | |
12 :iterator._current = 1; | |
13 [yield] true; | |
14 } | |
15 { | |
16 :iterator.isYieldEach = true; | |
17 :iterator._current = <core::num>[3, 4.0]; | |
18 [yield] true; | |
19 } | |
20 } | |
21 return false; | |
22 } | |
23 return new core::_SyncIterable::•(:sync_op); | |
24 }; | 9 }; |
25 core::Iterable<core::num> g = f.call(); | 10 core::Iterable<core::num> g = f.call(); |
26 core::Iterable<core::int> h = f.call(); | 11 core::Iterable<core::int> h = f.call(); |
27 } | 12 } |
OLD | NEW |