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