(&mut self, expr: &Hir, greedy: bool)
| 561 | } |
| 562 | |
| 563 | fn c_repeat_one_or_more(&mut self, expr: &Hir, greedy: bool) -> Result { |
| 564 | let Patch { hole: hole_rep, entry: entry_rep } = self.c(expr)?; |
| 565 | self.fill_to_next(hole_rep); |
| 566 | let split = self.push_split_hole(); |
| 567 | |
| 568 | let split_hole = if greedy { |
| 569 | self.fill_split(split, Some(entry_rep), None) |
| 570 | } else { |
| 571 | self.fill_split(split, None, Some(entry_rep)) |
| 572 | }; |
| 573 | Ok(Patch { hole: split_hole, entry: entry_rep }) |
| 574 | } |
| 575 | |
| 576 | fn c_repeat_range_min_or_more( |
| 577 | &mut self, |
no test coverage detected