Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
discriminant for switch statements is a Rhino AST node, not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Oct 27, 2013
1 parent 10f9b8d commit 661ead6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jsdoc/AstBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ private void processSwitchStatement(SwitchStatement rhinoNode, Entry info)
{
info.put(TYPE, JsDocNode.SWITCH_STATEMENT);

info.put("discriminant", rhinoNode.getExpression());
info.put("discriminant", processNode(rhinoNode.getExpression()));
info.put("cases", processNodeList(rhinoNode.getCases()));
// omitting the "lexical" property for now, as Rhino doesn't seem to provide it
}
Expand Down

0 comments on commit 661ead6

Please sign in to comment.