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

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: 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
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 4455052a60b8d4ff6bfff4da9b9b969cfd0ca140..663b526be73578c9edceec6ba5af1a5f5a98d76f 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() {

Powered by Google App Engine
This is Rietveld 408576698