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

Commit

Permalink
set "prefix" property on UnaryExpression nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Oct 27, 2013
1 parent 1dad8ed commit a6094c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jsdoc/AstBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,12 @@ private void processUnaryExpression(UnaryExpression rhinoNode, Entry info)

if (op == Token.INC || op == Token.DEC) {
info.put(TYPE, JsDocNode.UPDATE_EXPRESSION);
info.put("prefix", rhinoNode.isPrefix());
} else {
info.put(TYPE, JsDocNode.UNARY_EXPRESSION);
}

info.put("prefix", rhinoNode.isPrefix());

// work around a bug in AstNode.operatorToString()
if (op == Token.VOID) {
opString = "void";
Expand Down

0 comments on commit a6094c7

Please sign in to comment.