| Index: test/codegen_expected/language/flatten_test_01_multi.js
|
| diff --git a/test/codegen_expected/language/flatten_test_01_multi.js b/test/codegen_expected/language/flatten_test_01_multi.js
|
| index 4d30fef2192848d257ea1688d0adc93f061ea452..9401778064a7d9493453e7eb539fd44cd25de0d7 100644
|
| --- a/test/codegen_expected/language/flatten_test_01_multi.js
|
| +++ b/test/codegen_expected/language/flatten_test_01_multi.js
|
| @@ -20,39 +20,49 @@ dart_library.library('language/flatten_test_01_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);
|
| @@ -70,39 +80,49 @@ dart_library.library('language/flatten_test_01_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);
|
|
|