CodeQL library for Go
codeql/go-all 2.0.1-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)