Creates a group HIR expression.
(group: Group)
| 377 | |
| 378 | /// Creates a group HIR expression. |
| 379 | pub fn group(group: Group) -> Hir { |
| 380 | let mut info = HirInfo::new(); |
| 381 | info.set_always_utf8(group.hir.is_always_utf8()); |
| 382 | info.set_all_assertions(group.hir.is_all_assertions()); |
| 383 | info.set_anchored_start(group.hir.is_anchored_start()); |
| 384 | info.set_anchored_end(group.hir.is_anchored_end()); |
| 385 | info.set_line_anchored_start(group.hir.is_line_anchored_start()); |
| 386 | info.set_line_anchored_end(group.hir.is_line_anchored_end()); |
| 387 | info.set_any_anchored_start(group.hir.is_any_anchored_start()); |
| 388 | info.set_any_anchored_end(group.hir.is_any_anchored_end()); |
| 389 | info.set_match_empty(group.hir.is_match_empty()); |
| 390 | info.set_literal(false); |
| 391 | info.set_alternation_literal(false); |
| 392 | Hir { |
| 393 | kind: HirKind::Group(group), |
| 394 | info: info, |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | /// Returns the concatenation of the given expressions. |
| 399 | /// |
nothing calls this directly
no test coverage detected