/* * (non-Javadoc) * @see com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSBooleanOperatorNode) */ @Override public void visit(JSBinaryBooleanOperatorNode node) { JSTokenType token = JSTokenType.get((String) node.getOperator().value); switch (token) { case AMPERSAND_AMPERSAND: case PIPE_PIPE: this.addTypes(node.getLeftHandSide()); this.addTypes(node.getRightHandSide()); break; default: this.addType(JSTypeConstants.BOOLEAN_TYPE); } }