find_logical_left_operand_start

Function find_logical_left_operand_start 

Source
pub(super) fn find_logical_left_operand_start(
    bytes: &[u8],
    op_pos: usize,
) -> usize
Expand description

Walk left from op_pos to find the start of the logical operator’s left operand. Spans comparison/arithmetic ops at depth 0 (so rg4 > 1.2 && change2 gives rg4 > 1.2 as the left operand). Stops at the nearest depth-0 (, ,, ;, &&, ||, or assignment =.