Create a capturing group with the given span.
(range: Range<usize>, index: u32, ast: Ast)
| 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 | /// |