CodeQL library for Rust
codeql/rust-all 0.2.25 (changelog, source)
Search

Class MakeCfgNodes::Nodes::BinaryExprCfgNode

A binary operation expression. For example:

x + y;
x && y;
x <= y;
x = y;
x += y;

Import path

import codeql.rust.controlflow.internal.generated.CfgNodes

Direct supertypes

Predicates

getAnAttr

Gets any of the attrs of this binary expression.

getAttr

Gets the indexth attr of this binary expression (0-based).

getBinaryExpr

Gets the underlying BinaryExpr.

getLhs

Gets the lhs of this binary expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this binary expression.

getOperatorName

Gets the operator name of this binary expression, if it exists.

getRhs

Gets the rhs of this binary expression, if it exists.

hasLhs

Holds if getLhs() exists.

hasOperatorName

Holds if getOperatorName() exists.

hasRhs

Holds if getRhs() exists.

Inherited predicates

getAstNodefrom CfgNode
getExpr

Gets the underlying Expr.

from ExprCfgNode
getLocationfrom CfgNode
toStringfrom CfgNode

Charpred