Skip to main content

binary_expr_rhs

Function binary_expr_rhs 

Source
pub fn binary_expr_rhs(node: &SyntaxNode) -> Option<SyntaxNode>
Expand description

Returns the right-hand side expression of a NodeBinaryExpr. Prefers the named field “rhs” when present; otherwise uses the last node child. When the grammar labels RHS, it may wrap it in NodeExpr; we unwrap so the returned node is the inner expression.