OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/sync_generator2_test_none_multi', null, /* Import
s */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__sync_generator2_test_none_multi(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const async = dart_sdk.async; |
| 8 const _interceptors = dart_sdk._interceptors; |
| 9 const dart = dart_sdk.dart; |
| 10 const dartx = dart_sdk.dartx; |
| 11 const expect$ = expect.expect; |
| 12 const sync_generator2_test_none_multi = Object.create(null); |
| 13 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 sync_generator2_test_none_multi.sync = "topLevelSync"; |
| 16 sync_generator2_test_none_multi.async = "topLevelAync"; |
| 17 sync_generator2_test_none_multi.await = "topLevelAwait"; |
| 18 sync_generator2_test_none_multi.yield = "topLevelYield"; |
| 19 sync_generator2_test_none_multi.test01 = function() { |
| 20 return dart.syncStar(function*() { |
| 21 let x1 = sync_generator2_test_none_multi.sync; |
| 22 let stream = async.Stream.fromIterable(JSArrayOfint().of([1, 2, 3])); |
| 23 }, dart.dynamic); |
| 24 }; |
| 25 dart.fn(sync_generator2_test_none_multi.test01, VoidTodynamic()); |
| 26 sync_generator2_test_none_multi.test02 = function() { |
| 27 return dart.syncStar(function*() { |
| 28 yield 12321; |
| 29 }, dart.dynamic); |
| 30 }; |
| 31 dart.fn(sync_generator2_test_none_multi.test02, VoidTodynamic()); |
| 32 sync_generator2_test_none_multi.K = class K extends core.Object { |
| 33 get nix() { |
| 34 return dart.syncStar(function*() { |
| 35 }, dart.dynamic); |
| 36 } |
| 37 sync() { |
| 38 return dart.syncStar((function*() { |
| 39 yield dart.bind(this, 'sync'); |
| 40 }).bind(this), dart.dynamic); |
| 41 } |
| 42 }; |
| 43 dart.setSignature(sync_generator2_test_none_multi.K, { |
| 44 methods: () => ({sync: dart.definiteFunctionType(dart.dynamic, [])}) |
| 45 }); |
| 46 sync_generator2_test_none_multi.main = function() { |
| 47 let x = null; |
| 48 x = sync_generator2_test_none_multi.test01(); |
| 49 expect$.Expect.equals("()", dart.toString(x)); |
| 50 x = sync_generator2_test_none_multi.test02(); |
| 51 expect$.Expect.equals("(12321)", dart.toString(x)); |
| 52 x = new sync_generator2_test_none_multi.K(); |
| 53 core.print(dart.dsend(dart.dsend(x, 'sync'), 'toList')); |
| 54 expect$.Expect.equals(1, dart.dload(dart.dsend(x, 'sync'), 'length')); |
| 55 }; |
| 56 dart.fn(sync_generator2_test_none_multi.main, VoidTodynamic()); |
| 57 // Exports: |
| 58 exports.sync_generator2_test_none_multi = sync_generator2_test_none_multi; |
| 59 }); |
OLD | NEW |