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