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

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

Issue 1152583002: Add constructors to 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/sunflower/sunflower.js
diff --git a/test/codegen/expect/sunflower/sunflower.js b/test/codegen/expect/sunflower/sunflower.js
index 26321c4b985d9597afc71f911377aac83e6e596a..c79c5f69b4fc4cad164c239c2dc3e81ab8e8951f 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -55,6 +55,9 @@ var core = dart.import(core);
this.radius = radius;
}
}
+ dart.setSignature(Circle, {
+ constructors: () => ({Circle: [Circle, [core.num, core.num, core.num]]})
+ });
class CirclePainter extends core.Object {
CirclePainter() {
this.color = ORANGE;
@@ -83,6 +86,9 @@ var core = dart.import(core);
this.color = color;
}
}
+ dart.setSignature(SunflowerSeed, {
+ constructors: () => ({SunflowerSeed: [SunflowerSeed, [core.num, core.num, core.num], [core.String]]})
+ });
// Exports:
exports.ORANGE = ORANGE;
exports.SEED_RADIUS = SEED_RADIUS;

Powered by Google App Engine
This is Rietveld 408576698