OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/flatten_test_09_multi', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__flatten_test_09_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 flatten_test_09_multi = Object.create(null); |
| 10 let Derived = () => (Derived = dart.constFn(flatten_test_09_multi.Derived$()))
(); |
| 11 let FixedPoint = () => (FixedPoint = dart.constFn(flatten_test_09_multi.FixedP
oint$()))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 flatten_test_09_multi.Derived$ = dart.generic(T => { |
| 14 let FutureOfT = () => (FutureOfT = dart.constFn(async.Future$(T)))(); |
| 15 const Derived = dart.callableClass(function Derived(...args) { |
| 16 const self = this; |
| 17 function call(...args) { |
| 18 return self.call.apply(self, args); |
| 19 } |
| 20 call.__proto__ = this.__proto__; |
| 21 call.new.apply(call, args); |
| 22 return call; |
| 23 }, class Derived extends core.Object { |
| 24 noSuchMethod(invocation) { |
| 25 return super.noSuchMethod(invocation); |
| 26 } |
| 27 }); |
| 28 dart.addTypeTests(Derived); |
| 29 Derived[dart.implements] = () => [FutureOfT()]; |
| 30 return Derived; |
| 31 }); |
| 32 flatten_test_09_multi.Derived = Derived(); |
| 33 flatten_test_09_multi.FixedPoint$ = dart.generic(T => { |
| 34 let FixedPointOfT = () => (FixedPointOfT = dart.constFn(flatten_test_09_mult
i.FixedPoint$(T)))(); |
| 35 let FutureOfFixedPointOfT = () => (FutureOfFixedPointOfT = dart.constFn(asyn
c.Future$(FixedPointOfT())))(); |
| 36 const FixedPoint = dart.callableClass(function FixedPoint(...args) { |
| 37 const self = this; |
| 38 function call(...args) { |
| 39 return self.call.apply(self, args); |
| 40 } |
| 41 call.__proto__ = this.__proto__; |
| 42 call.new.apply(call, args); |
| 43 return call; |
| 44 }, class FixedPoint extends core.Object { |
| 45 noSuchMethod(invocation) { |
| 46 return super.noSuchMethod(invocation); |
| 47 } |
| 48 }); |
| 49 dart.addTypeTests(FixedPoint); |
| 50 FixedPoint[dart.implements] = () => [FutureOfFixedPointOfT()]; |
| 51 return FixedPoint; |
| 52 }); |
| 53 flatten_test_09_multi.FixedPoint = FixedPoint(); |
| 54 flatten_test_09_multi.test = function() { |
| 55 return dart.async(function*() { |
| 56 }, dart.dynamic); |
| 57 }; |
| 58 dart.fn(flatten_test_09_multi.test, VoidTodynamic()); |
| 59 flatten_test_09_multi.main = function() { |
| 60 flatten_test_09_multi.test(); |
| 61 }; |
| 62 dart.fn(flatten_test_09_multi.main, VoidTodynamic()); |
| 63 // Exports: |
| 64 exports.flatten_test_09_multi = flatten_test_09_multi; |
| 65 }); |
OLD | NEW |