Function sqruff_lib::core::parser::match_algorithms::prune_options

source ยท
pub fn prune_options(
    options: &[Arc<dyn Matchable>],
    segments: &[ErasedSegment],
    parse_context: &mut ParseContext<'_>
) -> Vec<Arc<dyn Matchable>>
Expand description

Use the simple matchers to prune which options to match on.

Works in the context of a grammar making choices between options such as AnyOf or the content of Delimited.