collect_errors_recursively

Function collect_errors_recursively 

Source
pub fn collect_errors_recursively(statements: &[Statement]) -> Vec<ErrorResult>
Expand description

Recursively collects errors from a list of statements.

This function traverses the provided statements and aggregates any Unknown or explicit Error statements into a flat vector. It also descends into loop bodies to ensure nested errors are surfaced.