Index: test/codegen_expected/language/flatten_test_05_multi.js |
diff --git a/test/codegen_expected/language/flatten_test_05_multi.js b/test/codegen_expected/language/flatten_test_05_multi.js |
index 14f0b73fdb487a1c3a82775bfd9ffd2c09646103..2845dbdafeb3918751c0882f7b2ef6b71e8baf5a 100644 |
--- a/test/codegen_expected/language/flatten_test_05_multi.js |
+++ b/test/codegen_expected/language/flatten_test_05_multi.js |
@@ -19,39 +19,49 @@ dart_library.library('language/flatten_test_05_multi', null, /* Imports */[ |
} |
wait(T) { |
return (futures, opts) => { |
- return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.InvocationImpl('wait', [futures], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [futures]; |
+ return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.InvocationImpl('wait', positionalArgs, {namedArguments: opts, isMethod: true}))); |
}; |
} |
any(T) { |
return futures => { |
- return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationImpl('any', [futures], {isMethod: true}))); |
+ let positionalArgs = [futures]; |
+ return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationImpl('any', positionalArgs, {isMethod: true}))); |
}; |
} |
forEach(input, f) { |
- return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('forEach', [input, f], {isMethod: true}))); |
+ let positionalArgs = [input, f]; |
+ return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('forEach', positionalArgs, {isMethod: true}))); |
} |
doWhile(f) { |
- return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('doWhile', [f], {isMethod: true}))); |
+ let positionalArgs = [f]; |
+ return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('doWhile', positionalArgs, {isMethod: true}))); |
} |
then(S) { |
return (onValue, opts) => { |
- return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationImpl('then', [onValue], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [onValue]; |
+ return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationImpl('then', positionalArgs, {namedArguments: opts, isMethod: true}))); |
}; |
} |
catchError(onError, opts) { |
- return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('catchError', [onError], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [onError]; |
+ return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('catchError', positionalArgs, {namedArguments: opts, isMethod: true}))); |
} |
whenComplete(action) { |
- return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whenComplete', [action], {isMethod: true}))); |
+ let positionalArgs = [action]; |
+ return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whenComplete', positionalArgs, {isMethod: true}))); |
} |
asStream() { |
- return StreamOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asStream', [], {isMethod: true}))); |
+ let positionalArgs = []; |
+ return StreamOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asStream', positionalArgs, {isMethod: true}))); |
} |
timeout(timeLimit, opts) { |
- return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('timeout', [timeLimit], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [timeLimit]; |
+ return FutureOfT()._check(this.noSuchMethod(new dart.InvocationImpl('timeout', positionalArgs, {namedArguments: opts, isMethod: true}))); |
} |
get _nullFuture() { |
- return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_nullFuture', [], {isGetter: true}))); |
+ let positionalArgs = []; |
+ return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_nullFuture', positionalArgs, {isGetter: true}))); |
} |
} |
dart.addTypeTests(Derived); |
@@ -69,39 +79,49 @@ dart_library.library('language/flatten_test_05_multi', null, /* Imports */[ |
} |
wait(T) { |
return (futures, opts) => { |
- return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.InvocationImpl('wait', [futures], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [futures]; |
+ return async.Future$(core.List$(T))._check(this.noSuchMethod(new dart.InvocationImpl('wait', positionalArgs, {namedArguments: opts, isMethod: true}))); |
}; |
} |
any(T) { |
return futures => { |
- return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationImpl('any', [futures], {isMethod: true}))); |
+ let positionalArgs = [futures]; |
+ return async.Future$(T)._check(this.noSuchMethod(new dart.InvocationImpl('any', positionalArgs, {isMethod: true}))); |
}; |
} |
forEach(input, f) { |
- return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('forEach', [input, f], {isMethod: true}))); |
+ let positionalArgs = [input, f]; |
+ return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('forEach', positionalArgs, {isMethod: true}))); |
} |
doWhile(f) { |
- return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('doWhile', [f], {isMethod: true}))); |
+ let positionalArgs = [f]; |
+ return async.Future._check(this.noSuchMethod(new dart.InvocationImpl('doWhile', positionalArgs, {isMethod: true}))); |
} |
then(S) { |
return (onValue, opts) => { |
- return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationImpl('then', [onValue], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [onValue]; |
+ return async.Future$(S)._check(this.noSuchMethod(new dart.InvocationImpl('then', positionalArgs, {namedArguments: opts, isMethod: true}))); |
}; |
} |
catchError(onError, opts) { |
- return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('catchError', [onError], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [onError]; |
+ return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('catchError', positionalArgs, {namedArguments: opts, isMethod: true}))); |
} |
whenComplete(action) { |
- return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whenComplete', [action], {isMethod: true}))); |
+ let positionalArgs = [action]; |
+ return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('whenComplete', positionalArgs, {isMethod: true}))); |
} |
asStream() { |
- return StreamOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asStream', [], {isMethod: true}))); |
+ let positionalArgs = []; |
+ return StreamOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('asStream', positionalArgs, {isMethod: true}))); |
} |
timeout(timeLimit, opts) { |
- return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('timeout', [timeLimit], {namedArguments: opts, isMethod: true}))); |
+ let positionalArgs = [timeLimit]; |
+ return FutureOfFixedPointOfT()._check(this.noSuchMethod(new dart.InvocationImpl('timeout', positionalArgs, {namedArguments: opts, isMethod: true}))); |
} |
get _nullFuture() { |
- return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_nullFuture', [], {isGetter: true}))); |
+ let positionalArgs = []; |
+ return async._Future._check(this.noSuchMethod(new dart.InvocationImpl('_nullFuture', positionalArgs, {isGetter: true}))); |
} |
} |
dart.addTypeTests(FixedPoint); |