MCPcopy Create free account
hub / github.com/davidblewett/rure-python / alt

Function alt

regex/regex-syntax/src/ast/parse.rs:2406–2408  ·  view source on GitHub ↗

Create an alternation with the given span.

(range: Range<usize>, asts: Vec<Ast>)

Source from the content-addressed store, hash-verified

2404
2405 /// Create an alternation with the given span.
2406 fn alt(range: Range<usize>, asts: Vec<Ast>) -> Ast {
2407 Ast::Alternation(ast::Alternation { span: span(range), asts: asts })
2408 }
2409
2410 /// Create a capturing group with the given span.
2411 fn group(range: Range<usize>, index: u32, ast: Ast) -> Ast {

Callers

nothing calls this directly

Calls 2

AlternationClass · 0.85
spanFunction · 0.85

Tested by

no test coverage detected