CodeQL library for Go
codeql/go-all 1.1.2-dev (changelog, source)
Search

Member predicate BinaryExpr::hasOperands

Holds if e and f (in either order) are the two operands of this binary expression.

predicate hasOperands(Expr e, Expr f)