• Home
  • Raw
  • Download

Lines Matching refs:hir

7 use syntax::hir::{self, Hir};
257 use syntax::hir::HirKind::*; in c()
262 Literal(hir::Literal::Unicode(c)) => self.c_char(c), in c()
263 Literal(hir::Literal::Byte(b)) => { in c()
267 Class(hir::Class::Unicode(ref cls)) => self.c_class(cls.ranges()), in c()
268 Class(hir::Class::Bytes(ref cls)) => { in c()
276 char_ranges.push(hir::ClassUnicodeRange::new(s, e)); in c()
281 Anchor(hir::Anchor::StartLine) if self.compiled.is_reverse => { in c()
285 Anchor(hir::Anchor::StartLine) => { in c()
289 Anchor(hir::Anchor::EndLine) if self.compiled.is_reverse => { in c()
293 Anchor(hir::Anchor::EndLine) => { in c()
297 Anchor(hir::Anchor::StartText) if self.compiled.is_reverse => { in c()
300 Anchor(hir::Anchor::StartText) => { in c()
303 Anchor(hir::Anchor::EndText) if self.compiled.is_reverse => { in c()
306 Anchor(hir::Anchor::EndText) => { in c()
309 WordBoundary(hir::WordBoundary::Unicode) => { in c()
321 WordBoundary(hir::WordBoundary::UnicodeNegate) => { in c()
333 WordBoundary(hir::WordBoundary::Ascii) => { in c()
337 WordBoundary(hir::WordBoundary::AsciiNegate) => { in c()
342 hir::GroupKind::NonCapturing => self.c(&g.hir), in c()
343 hir::GroupKind::CaptureIndex(index) => { in c()
347 self.c_capture(2 * index as usize, &g.hir) in c()
349 hir::GroupKind::CaptureName { index, ref name } => { in c()
355 self.c_capture(2 * index as usize, &g.hir) in c()
389 self.c(&Hir::repetition(hir::Repetition { in c_dotstar()
390 kind: hir::RepetitionKind::ZeroOrMore, in c_dotstar()
392 hir: Box::new(Hir::any(true)), in c_dotstar()
396 self.c(&Hir::repetition(hir::Repetition { in c_dotstar()
397 kind: hir::RepetitionKind::ZeroOrMore, in c_dotstar()
399 hir: Box::new(Hir::any(false)), in c_dotstar()
414 self.c_class(&[hir::ClassUnicodeRange::new(c, c)]) in c_char()
422 fn c_class(&mut self, ranges: &[hir::ClassUnicodeRange]) -> ResultOrEmpty { in c_class()
439 self.c_class_bytes(&[hir::ClassBytesRange::new(b, b)]) in c_byte()
444 ranges: &[hir::ClassBytesRange], in c_class_bytes()
550 fn c_repeat(&mut self, rep: &hir::Repetition) -> ResultOrEmpty { in c_repeat()
551 use syntax::hir::RepetitionKind::*; in c_repeat()
553 ZeroOrOne => self.c_repeat_zero_or_one(&rep.hir, rep.greedy), in c_repeat()
554 ZeroOrMore => self.c_repeat_zero_or_more(&rep.hir, rep.greedy), in c_repeat()
555 OneOrMore => self.c_repeat_one_or_more(&rep.hir, rep.greedy), in c_repeat()
556 Range(hir::RepetitionRange::Exactly(min_max)) => { in c_repeat()
557 self.c_repeat_range(&rep.hir, rep.greedy, min_max, min_max) in c_repeat()
559 Range(hir::RepetitionRange::AtLeast(min)) => { in c_repeat()
560 self.c_repeat_range_min_or_more(&rep.hir, rep.greedy, min) in c_repeat()
562 Range(hir::RepetitionRange::Bounded(min, max)) => { in c_repeat()
563 self.c_repeat_range(&rep.hir, rep.greedy, min, max) in c_repeat()
942 ranges: &'b [hir::ClassUnicodeRange],