Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: test/codegen_expected/language/flatten_test_06_multi.js

Issue 2202673002: Adjust method parameters in noSuchMethod helper stubs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/codegen_expected/language/flatten_test_06_multi.js
diff --git a/test/codegen_expected/language/flatten_test_06_multi.js b/test/codegen_expected/language/flatten_test_06_multi.js
index 2a8b890dcb3f5cc367ebfe5f2432c4b0ba3430ce..c9cd4b4c43a1ee19d0a19662160428ff7386390a 100644
--- a/test/codegen_expected/language/flatten_test_06_multi.js
+++ b/test/codegen_expected/language/flatten_test_06_multi.js
@@ -19,39 +19,49 @@ dart_library.library('language/flatten_test_06_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_06_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);

Powered by Google App Engine
This is Rietveld 408576698