Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Pass through /test/ in SwitchStatement handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed May 28, 2013
1 parent c49909c commit d397fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idast.js
Expand Up @@ -67,7 +67,7 @@
var cs = node.cases[i];
if (cs.test) c(cs.test, st + "/test/" + i.toString(), "Expression");
for (var j = 0; j < cs.consequent.length; ++j)
c(cs.consequent[j], st + "/consequent/" + j.toString(), "Statement");
c(cs.consequent[j], st + "/test/" + i.toString() + "/consequent/" + j.toString(), "Statement");
}
};
base.ReturnStatement = function(node, st, c) {
Expand Down

0 comments on commit d397fef

Please sign in to comment.