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