CodeQL library for Python
codeql/python-all 0.11.12 (changelog, source)
Search

Member predicate UnaryExprNode::getOperand

Gets flow node corresponding to the operand of a unary expression. Note that this might not be the flow node for the AST operand. In not (a or b) the AST operand is (a or b), but as a or b is a short-circuiting operation, there will be two not CFG nodes, one will have a or b as it operand, the other will have just b.

ControlFlowNode getOperand()