summaryrefslogtreecommitdiff
path: root/js/Branching/M_SWITCH.js
diff options
context:
space:
mode:
authorSunil Shetye2018-09-17 16:11:31 +0530
committerSunil Shetye2018-10-08 11:24:12 +0530
commitf389f174481df676c841ebcc87a7b8b313921bbc (patch)
tree2551fd05222a78d4441f5883a97980bda1d6b241 /js/Branching/M_SWITCH.js
parent4dc055ae23c9e33e459b7b583a67f92b5972a062 (diff)
downloadsci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.gz
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.bz2
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.zip
add importset and getContainer to combined.js
Diffstat (limited to 'js/Branching/M_SWITCH.js')
-rw-r--r--js/Branching/M_SWITCH.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js
index a79a22b8..d15db4f1 100644
--- a/js/Branching/M_SWITCH.js
+++ b/js/Branching/M_SWITCH.js
@@ -81,4 +81,12 @@ function M_SWITCH() {
M_SWITCH.prototype.get_popup_title = function M_SWITCH() {
return this.set_param_popup_title;
}
+ M_SWITCH.prototype.importset = function M_SWITCH() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.nin = ary[0];
+ this.base = ary[1];
+ this.rule = ary[2];
+ }
+ M_SWITCH.prototype.getContainer = function M_SWITCH() { return new BasicBlock(this.x); }
}