OLD | NEW |
1 dart_library.library('language/async_await_syntax_test_c04a_multi', null, /* Imp
orts */[ | 1 dart_library.library('language/async_await_syntax_test_c04a_multi', null, /* Imp
orts */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__async_await_syntax_test_c04a_multi(exports, dart_sdk) { | 3 ], function load__async_await_syntax_test_c04a_multi(exports, dart_sdk) { |
4 'use strict'; | 4 'use strict'; |
5 const core = dart_sdk.core; | 5 const core = dart_sdk.core; |
6 const async = dart_sdk.async; | 6 const async = dart_sdk.async; |
7 const dart = dart_sdk.dart; | 7 const dart = dart_sdk.dart; |
8 const dartx = dart_sdk.dartx; | 8 const dartx = dart_sdk.dartx; |
9 const async_await_syntax_test_c04a_multi = Object.create(null); | 9 const async_await_syntax_test_c04a_multi = Object.create(null); |
| 10 let VoidToIterable = () => (VoidToIterable = dart.constFn(dart.definiteFunctio
nType(core.Iterable, [])))(); |
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); | 12 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
12 async_await_syntax_test_c04a_multi.yield = 0; | 13 async_await_syntax_test_c04a_multi.yield = 0; |
13 async_await_syntax_test_c04a_multi.await = 0; | 14 async_await_syntax_test_c04a_multi.await = 0; |
14 dart.copyProperties(async_await_syntax_test_c04a_multi, { | 15 dart.copyProperties(async_await_syntax_test_c04a_multi, { |
15 get st() { | 16 get st() { |
16 return async.Stream.fromIterable([]); | 17 return async.Stream.fromIterable([]); |
17 } | 18 } |
18 }); | 19 }); |
19 async_await_syntax_test_c04a_multi.B = class B extends core.Object {}; | 20 async_await_syntax_test_c04a_multi.B = class B extends core.Object {}; |
20 async_await_syntax_test_c04a_multi.C = class C extends async_await_syntax_test
_c04a_multi.B { | 21 async_await_syntax_test_c04a_multi.C = class C extends async_await_syntax_test
_c04a_multi.B { |
21 new() { | 22 new() { |
22 } | 23 } |
23 }; | 24 }; |
24 dart.setSignature(async_await_syntax_test_c04a_multi.C, { | 25 dart.setSignature(async_await_syntax_test_c04a_multi.C, { |
25 constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test
_c04a_multi.C, [])}) | 26 constructors: () => ({new: dart.definiteFunctionType(async_await_syntax_test
_c04a_multi.C, [])}) |
26 }); | 27 }); |
27 async_await_syntax_test_c04a_multi.method1 = function() { | 28 async_await_syntax_test_c04a_multi.method1 = function() { |
28 function c04a() { | 29 function c04a() { |
29 return dart.syncStar(function*() { | 30 return dart.syncStar(function*() { |
30 }, dart.dynamic); | 31 }, dart.dynamic); |
31 } | 32 } |
32 dart.fn(c04a, VoidTodynamic()); | 33 dart.fn(c04a, VoidToIterable()); |
33 c04a(); | 34 c04a(); |
34 }; | 35 }; |
35 dart.fn(async_await_syntax_test_c04a_multi.method1, VoidTodynamic()); | 36 dart.fn(async_await_syntax_test_c04a_multi.method1, VoidTodynamic()); |
36 async_await_syntax_test_c04a_multi.method2 = function() { | 37 async_await_syntax_test_c04a_multi.method2 = function() { |
37 }; | 38 }; |
38 dart.fn(async_await_syntax_test_c04a_multi.method2, VoidTodynamic()); | 39 dart.fn(async_await_syntax_test_c04a_multi.method2, VoidTodynamic()); |
39 async_await_syntax_test_c04a_multi.main = function() { | 40 async_await_syntax_test_c04a_multi.main = function() { |
40 let a = null; | 41 let a = null; |
41 let c = new async_await_syntax_test_c04a_multi.C(); | 42 let c = new async_await_syntax_test_c04a_multi.C(); |
42 async_await_syntax_test_c04a_multi.method1(); | 43 async_await_syntax_test_c04a_multi.method1(); |
43 async_await_syntax_test_c04a_multi.method2(); | 44 async_await_syntax_test_c04a_multi.method2(); |
44 }; | 45 }; |
45 dart.fn(async_await_syntax_test_c04a_multi.main, VoidTovoid()); | 46 dart.fn(async_await_syntax_test_c04a_multi.main, VoidTovoid()); |
46 // Exports: | 47 // Exports: |
47 exports.async_await_syntax_test_c04a_multi = async_await_syntax_test_c04a_mult
i; | 48 exports.async_await_syntax_test_c04a_multi = async_await_syntax_test_c04a_mult
i; |
48 }); | 49 }); |
OLD | NEW |