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

Function group

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

Create a capturing group with the given span.

(range: Range<usize>, index: u32, ast: Ast)

Source from the content-addressed store, hash-verified

2409
2410 /// Create a capturing group with the given span.
2411 fn group(range: Range<usize>, index: u32, ast: Ast) -> Ast {
2412 Ast::Group(ast::Group {
2413 span: span(range),
2414 kind: ast::GroupKind::CaptureIndex(index),
2415 ast: Box::new(ast),
2416 })
2417 }
2418
2419 /// Create an ast::SetFlags.
2420 ///

Callers

nothing calls this directly

Calls 2

spanFunction · 0.85
GroupClass · 0.70

Tested by

no test coverage detected