Lines Matching refs:hir
37 use regex_syntax::hir::{self, Hir, HirKind};
398 HirKind::Literal(hir::Literal::Unicode(ch)) => { in c()
407 HirKind::Literal(hir::Literal::Byte(b)) => Ok(self.c_range(b, b)), in c()
408 HirKind::Class(hir::Class::Bytes(ref cls)) => { in c()
411 HirKind::Class(hir::Class::Unicode(ref cls)) => { in c()
415 HirKind::Group(ref group) => self.c(&*group.hir), in c()
474 fn c_repetition(&self, rep: &hir::Repetition) -> Result<ThompsonRef> { in c_repetition()
476 hir::RepetitionKind::ZeroOrOne => { in c_repetition()
477 self.c_zero_or_one(&rep.hir, rep.greedy) in c_repetition()
479 hir::RepetitionKind::ZeroOrMore => { in c_repetition()
480 self.c_at_least(&rep.hir, rep.greedy, 0) in c_repetition()
482 hir::RepetitionKind::OneOrMore => { in c_repetition()
483 self.c_at_least(&rep.hir, rep.greedy, 1) in c_repetition()
485 hir::RepetitionKind::Range(ref rng) => match *rng { in c_repetition()
486 hir::RepetitionRange::Exactly(count) => { in c_repetition()
487 self.c_exactly(&rep.hir, count) in c_repetition()
489 hir::RepetitionRange::AtLeast(m) => { in c_repetition()
490 self.c_at_least(&rep.hir, rep.greedy, m) in c_repetition()
492 hir::RepetitionRange::Bounded(min, max) => { in c_repetition()
493 self.c_bounded(&rep.hir, rep.greedy, min, max) in c_repetition()
615 fn c_byte_class(&self, cls: &hir::ClassBytes) -> Result<ThompsonRef> { in c_byte_class()
628 fn c_unicode_class(&self, cls: &hir::ClassUnicode) -> Result<ThompsonRef> { in c_unicode_class()
722 cls: &hir::ClassUnicode, in c_unicode_class_reverse_with_suffix()
770 self.c(&Hir::repetition(hir::Repetition { in c_unanchored_prefix_valid_utf8()
771 kind: hir::RepetitionKind::ZeroOrMore, in c_unanchored_prefix_valid_utf8()
773 hir: Box::new(Hir::any(false)), in c_unanchored_prefix_valid_utf8()
778 self.c(&Hir::repetition(hir::Repetition { in c_unanchored_prefix_invalid_utf8()
779 kind: hir::RepetitionKind::ZeroOrMore, in c_unanchored_prefix_invalid_utf8()
781 hir: Box::new(Hir::any(true)), in c_unanchored_prefix_invalid_utf8()
1002 use regex_syntax::hir::Hir;
1101 let hir = ParserBuilder::new() in compile_literal() localVariable
1109 .build(&hir) in compile_literal()