OLD | NEW |
1 dart_library.library('language/flatten_test_12_multi', null, /* Imports */[ | 1 dart_library.library('language/flatten_test_12_multi', null, /* Imports */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__flatten_test_12_multi(exports, dart_sdk) { | 3 ], function load__flatten_test_12_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 flatten_test_12_multi = Object.create(null); | 9 const flatten_test_12_multi = Object.create(null); |
10 let Derived = () => (Derived = dart.constFn(flatten_test_12_multi.Derived$()))
(); | 10 let Derived = () => (Derived = dart.constFn(flatten_test_12_multi.Derived$()))
(); |
11 let FixedPoint = () => (FixedPoint = dart.constFn(flatten_test_12_multi.FixedP
oint$()))(); | 11 let FixedPoint = () => (FixedPoint = dart.constFn(flatten_test_12_multi.FixedP
oint$()))(); |
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
13 flatten_test_12_multi.Derived$ = dart.generic(T => { | 13 flatten_test_12_multi.Derived$ = dart.generic(T => { |
14 let FutureOfT = () => (FutureOfT = dart.constFn(async.Future$(T)))(); | 14 let FutureOfT = () => (FutureOfT = dart.constFn(async.Future$(T)))(); |
15 let StreamOfT = () => (StreamOfT = dart.constFn(async.Stream$(T)))(); | 15 let StreamOfT = () => (StreamOfT = dart.constFn(async.Stream$(T)))(); |
16 class Derived extends core.Object { | 16 class Derived extends core.Object { |
17 noSuchMethod(invocation) { | 17 noSuchMethod(invocation) { |
18 return super.noSuchMethod(invocation); | 18 return super.noSuchMethod(invocation); |
19 } | 19 } |
20 wait(T) { | 20 wait(T) { |
21 return (futures, opts) => { | 21 return (...args) => { |
22 return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.
InvocationImpl('wait', [futures], {namedArguments: opts, isMethod: true}))); | 22 return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.
InvocationImpl('wait', args, {namedArguments: dart.extractNamedArgs(args), isMet
hod: true}))); |
23 }; | 23 }; |
24 } | 24 } |
25 any(T) { | 25 any(T) { |
26 return futures => { | 26 return (...args) => { |
27 return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationIm
pl('any', [futures], {isMethod: true}))); | 27 return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationIm
pl('any', args, {isMethod: true}))); |
28 }; | 28 }; |
29 } | 29 } |
30 forEach(input, f) { | 30 forEach(...args) { |
31 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('fo
rEach', [input, f], {isMethod: true}))); | 31 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('fo
rEach', args, {isMethod: true}))); |
32 } | 32 } |
33 doWhile(f) { | 33 doWhile(...args) { |
34 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('do
While', [f], {isMethod: true}))); | 34 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('do
While', args, {isMethod: true}))); |
35 } | 35 } |
36 then(S) { | 36 then(S) { |
37 return (onValue, opts) => { | 37 return (...args) => { |
38 return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationIm
pl('then', [onValue], {namedArguments: opts, isMethod: true}))); | 38 return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationIm
pl('then', args, {namedArguments: dart.extractNamedArgs(args), isMethod: true}))
); |
39 }; | 39 }; |
40 } | 40 } |
41 catchError(onError, opts) { | 41 catchError(...args) { |
42 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('cat
chError', [onError], {namedArguments: opts, isMethod: true}))); | 42 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('cat
chError', args, {namedArguments: dart.extractNamedArgs(args), isMethod: true})))
; |
43 } | 43 } |
44 whenComplete(action) { | 44 whenComplete(...args) { |
45 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whe
nComplete', [action], {isMethod: true}))); | 45 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whe
nComplete', args, {isMethod: true}))); |
46 } | 46 } |
47 asStream() { | 47 asStream(...args) { |
48 return StreamOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asS
tream', [], {isMethod: true}))); | 48 return StreamOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asS
tream', args, {isMethod: true}))); |
49 } | 49 } |
50 timeout(timeLimit, opts) { | 50 timeout(...args) { |
51 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('tim
eout', [timeLimit], {namedArguments: opts, isMethod: true}))); | 51 return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('tim
eout', args, {namedArguments: dart.extractNamedArgs(args), isMethod: true}))); |
52 } | 52 } |
53 get _nullFuture() { | 53 get _nullFuture() { |
54 return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_
nullFuture', [], {isGetter: true}))); | 54 return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_
nullFuture', [], {isGetter: true}))); |
55 } | 55 } |
56 } | 56 } |
57 dart.addTypeTests(Derived); | 57 dart.addTypeTests(Derived); |
58 Derived[dart.implements] = () => [FutureOfT()]; | 58 Derived[dart.implements] = () => [FutureOfT()]; |
59 return Derived; | 59 return Derived; |
60 }); | 60 }); |
61 flatten_test_12_multi.Derived = Derived(); | 61 flatten_test_12_multi.Derived = Derived(); |
62 flatten_test_12_multi.FixedPoint$ = dart.generic(T => { | 62 flatten_test_12_multi.FixedPoint$ = dart.generic(T => { |
63 let FixedPointOfT = () => (FixedPointOfT = dart.constFn(flatten_test_12_mult
i.FixedPoint$(T)))(); | 63 let FixedPointOfT = () => (FixedPointOfT = dart.constFn(flatten_test_12_mult
i.FixedPoint$(T)))(); |
64 let FutureOfFixedPointOfT = () => (FutureOfFixedPointOfT = dart.constFn(asyn
c.Future$(FixedPointOfT())))(); | 64 let FutureOfFixedPointOfT = () => (FutureOfFixedPointOfT = dart.constFn(asyn
c.Future$(FixedPointOfT())))(); |
65 let StreamOfFixedPointOfT = () => (StreamOfFixedPointOfT = dart.constFn(asyn
c.Stream$(FixedPointOfT())))(); | 65 let StreamOfFixedPointOfT = () => (StreamOfFixedPointOfT = dart.constFn(asyn
c.Stream$(FixedPointOfT())))(); |
66 class FixedPoint extends core.Object { | 66 class FixedPoint extends core.Object { |
67 noSuchMethod(invocation) { | 67 noSuchMethod(invocation) { |
68 return super.noSuchMethod(invocation); | 68 return super.noSuchMethod(invocation); |
69 } | 69 } |
70 wait(T) { | 70 wait(T) { |
71 return (futures, opts) => { | 71 return (...args) => { |
72 return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.
InvocationImpl('wait', [futures], {namedArguments: opts, isMethod: true}))); | 72 return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.
InvocationImpl('wait', args, {namedArguments: dart.extractNamedArgs(args), isMet
hod: true}))); |
73 }; | 73 }; |
74 } | 74 } |
75 any(T) { | 75 any(T) { |
76 return futures => { | 76 return (...args) => { |
77 return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationIm
pl('any', [futures], {isMethod: true}))); | 77 return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationIm
pl('any', args, {isMethod: true}))); |
78 }; | 78 }; |
79 } | 79 } |
80 forEach(input, f) { | 80 forEach(...args) { |
81 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('fo
rEach', [input, f], {isMethod: true}))); | 81 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('fo
rEach', args, {isMethod: true}))); |
82 } | 82 } |
83 doWhile(f) { | 83 doWhile(...args) { |
84 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('do
While', [f], {isMethod: true}))); | 84 return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('do
While', args, {isMethod: true}))); |
85 } | 85 } |
86 then(S) { | 86 then(S) { |
87 return (onValue, opts) => { | 87 return (...args) => { |
88 return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationIm
pl('then', [onValue], {namedArguments: opts, isMethod: true}))); | 88 return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationIm
pl('then', args, {namedArguments: dart.extractNamedArgs(args), isMethod: true}))
); |
89 }; | 89 }; |
90 } | 90 } |
91 catchError(onError, opts) { | 91 catchError(...args) { |
92 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('catchError', [onError], {namedArguments: opts, isMethod: true}))); | 92 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('catchError', args, {namedArguments: dart.extractNamedArgs(args), isMeth
od: true}))); |
93 } | 93 } |
94 whenComplete(action) { | 94 whenComplete(...args) { |
95 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('whenComplete', [action], {isMethod: true}))); | 95 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('whenComplete', args, {isMethod: true}))); |
96 } | 96 } |
97 asStream() { | 97 asStream(...args) { |
98 return StreamOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('asStream', [], {isMethod: true}))); | 98 return StreamOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('asStream', args, {isMethod: true}))); |
99 } | 99 } |
100 timeout(timeLimit, opts) { | 100 timeout(...args) { |
101 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('timeout', [timeLimit], {namedArguments: opts, isMethod: true}))); | 101 return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.Invocat
ionImpl('timeout', args, {namedArguments: dart.extractNamedArgs(args), isMethod:
true}))); |
102 } | 102 } |
103 get _nullFuture() { | 103 get _nullFuture() { |
104 return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_
nullFuture', [], {isGetter: true}))); | 104 return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_
nullFuture', [], {isGetter: true}))); |
105 } | 105 } |
106 } | 106 } |
107 dart.addTypeTests(FixedPoint); | 107 dart.addTypeTests(FixedPoint); |
108 FixedPoint[dart.implements] = () => [FutureOfFixedPointOfT()]; | 108 FixedPoint[dart.implements] = () => [FutureOfFixedPointOfT()]; |
109 return FixedPoint; | 109 return FixedPoint; |
110 }); | 110 }); |
111 flatten_test_12_multi.FixedPoint = FixedPoint(); | 111 flatten_test_12_multi.FixedPoint = FixedPoint(); |
112 flatten_test_12_multi.test = function() { | 112 flatten_test_12_multi.test = function() { |
113 return dart.async(function*() { | 113 return dart.async(function*() { |
114 }, dart.dynamic); | 114 }, dart.dynamic); |
115 }; | 115 }; |
116 dart.fn(flatten_test_12_multi.test, VoidTodynamic()); | 116 dart.fn(flatten_test_12_multi.test, VoidTodynamic()); |
117 flatten_test_12_multi.main = function() { | 117 flatten_test_12_multi.main = function() { |
118 flatten_test_12_multi.test(); | 118 flatten_test_12_multi.test(); |
119 }; | 119 }; |
120 dart.fn(flatten_test_12_multi.main, VoidTodynamic()); | 120 dart.fn(flatten_test_12_multi.main, VoidTodynamic()); |
121 // Exports: | 121 // Exports: |
122 exports.flatten_test_12_multi = flatten_test_12_multi; | 122 exports.flatten_test_12_multi = flatten_test_12_multi; |
123 }); | 123 }); |
OLD | NEW |