get_assignment_from_expression

Function get_assignment_from_expression 

Source
pub fn get_assignment_from_expression(
    expression: &Expression,
) -> Option<&Assignment>
Expand description

Get the assignment operation from an expression.

This function will recursively search through the expression and its children to find the first assignment operation.

If no assignment operation is found, it will return None.