OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/async_await_syntax_test_b06a_multi', null, /* Imp
orts */[ |
| 2 'dart_sdk' |
| 3 ], function load__async_await_syntax_test_b06a_multi(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const async = dart_sdk.async; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const async_await_syntax_test_b06a_multi = Object.create(null); |
| 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 12 async_await_syntax_test_b06a_multi.yield = 0; |
| 13 async_await_syntax_test_b06a_multi.await = 0; |
| 14 dart.copyProperties(async_await_syntax_test_b06a_multi, { |
| 15 get st() { |
| 16 return async.Stream.fromIterable([]); |
| 17 } |
| 18 }); |
| 19 async_await_syntax_test_b06a_multi.B = class B extends core.Object {}; |
| 20 async_await_syntax_test_b06a_multi.C = class C extends async_await_syntax_test
_b06a_multi.B { |
| 21 new() { |
| 22 } |
| 23 b06a() { |
| 24 return dart.async(function*() { |
| 25 let it = async.StreamIterator.new(async.Stream._check(async_await_syntax
_test_b06a_multi.st)); |
| 26 try { |
| 27 while (yield it.moveNext()) { |
| 28 let o = it.current; |
| 29 } |
| 30 } finally { |
| 31 yield it.cancel(); |
| 32 } |
| 33 }, dart.dynamic); |
| 34 } |
| 35 }; |
| 36 dart.setSignature(async_await_syntax_test_b06a_multi.C, { |
| 37 constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test
_b06a_multi.C, [])}), |
| 38 methods: () => ({b06a: dart.definiteFunctionType(dart.dynamic, [])}) |
| 39 }); |
| 40 async_await_syntax_test_b06a_multi.method1 = function() { |
| 41 }; |
| 42 dart.fn(async_await_syntax_test_b06a_multi.method1, VoidTodynamic()); |
| 43 async_await_syntax_test_b06a_multi.method2 = function() { |
| 44 }; |
| 45 dart.fn(async_await_syntax_test_b06a_multi.method2, VoidTodynamic()); |
| 46 async_await_syntax_test_b06a_multi.main = function() { |
| 47 let a = null; |
| 48 let c = new async_await_syntax_test_b06a_multi.C(); |
| 49 c.b06a(); |
| 50 async_await_syntax_test_b06a_multi.method1(); |
| 51 async_await_syntax_test_b06a_multi.method2(); |
| 52 }; |
| 53 dart.fn(async_await_syntax_test_b06a_multi.main, VoidTovoid()); |
| 54 // Exports: |
| 55 exports.async_await_syntax_test_b06a_multi = async_await_syntax_test_b06a_mult
i; |
| 56 }); |
OLD | NEW |