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

Unified Diff: test/codegen/expect/methods.js

Issue 1145283002: Use short array syntax in method signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 7 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
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 3c0640f46925fb276b1ef96a51af51cb764d624d..d576a1429b2521dc44449df2a5add5038c19f9e7 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -44,12 +44,12 @@ var core = dart.import(core);
}
dart.setSignature(A, {
methods: () => ({
- x: dart.functionType(core.int, []),
- y: dart.functionType(core.int, [core.int]),
- z: dart.functionType(core.int, [], [core.num]),
- zz: dart.functionType(core.int, [], [core.int]),
- w: dart.functionType(core.int, [core.int], {b: core.num}),
- ww: dart.functionType(core.int, [core.int], {b: core.int})
+ x: [core.int, []],
+ y: [core.int, [core.int]],
+ z: [core.int, [], [core.num]],
+ zz: [core.int, [], [core.int]],
+ w: [core.int, [core.int], {b: core.num}],
+ ww: [core.int, [core.int], {b: core.int}]
})
});
class Bar extends core.Object {
@@ -58,7 +58,7 @@ var core = dart.import(core);
}
}
dart.setSignature(Bar, {
- methods: () => ({call: dart.functionType(dart.dynamic, [dart.dynamic])})
+ methods: () => ({call: [dart.dynamic, [dart.dynamic]]})
});
class Foo extends core.Object {
Foo() {
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698