OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/async_await_syntax_test_d05a_multi', null, /* Imp
orts */[ |
| 2 'dart_sdk' |
| 3 ], function load__async_await_syntax_test_d05a_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_d05a_multi = Object.create(null); |
| 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 11 let VoidToFuture = () => (VoidToFuture = dart.constFn(dart.definiteFunctionTyp
e(async.Future, [])))(); |
| 12 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 13 async_await_syntax_test_d05a_multi.yield = 0; |
| 14 async_await_syntax_test_d05a_multi.await = 0; |
| 15 dart.copyProperties(async_await_syntax_test_d05a_multi, { |
| 16 get st() { |
| 17 return async.Stream.fromIterable([]); |
| 18 } |
| 19 }); |
| 20 async_await_syntax_test_d05a_multi.B = class B extends core.Object {}; |
| 21 async_await_syntax_test_d05a_multi.C = class C extends async_await_syntax_test
_d05a_multi.B { |
| 22 new() { |
| 23 } |
| 24 }; |
| 25 dart.setSignature(async_await_syntax_test_d05a_multi.C, { |
| 26 constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test
_d05a_multi.C, [])}) |
| 27 }); |
| 28 async_await_syntax_test_d05a_multi.method1 = function() { |
| 29 }; |
| 30 dart.fn(async_await_syntax_test_d05a_multi.method1, VoidTodynamic()); |
| 31 async_await_syntax_test_d05a_multi.method2 = function() { |
| 32 let d05a = dart.fn(() => dart.async(function*() { |
| 33 yield 0; |
| 34 }, dart.dynamic), VoidToFuture()); |
| 35 d05a(); |
| 36 }; |
| 37 dart.fn(async_await_syntax_test_d05a_multi.method2, VoidTodynamic()); |
| 38 async_await_syntax_test_d05a_multi.main = function() { |
| 39 let a = null; |
| 40 let c = new async_await_syntax_test_d05a_multi.C(); |
| 41 async_await_syntax_test_d05a_multi.method1(); |
| 42 async_await_syntax_test_d05a_multi.method2(); |
| 43 }; |
| 44 dart.fn(async_await_syntax_test_d05a_multi.main, VoidTovoid()); |
| 45 // Exports: |
| 46 exports.async_await_syntax_test_d05a_multi = async_await_syntax_test_d05a_mult
i; |
| 47 }); |
OLD | NEW |