Lines Matching refs:HirKind
11 use hir::{self, Hir, HirKind};
586 HirKind::Literal(hir::Literal::Unicode(c)) => { in prefixes()
590 HirKind::Literal(hir::Literal::Byte(b)) => { in prefixes()
593 HirKind::Class(hir::Class::Unicode(ref cls)) => { in prefixes()
598 HirKind::Class(hir::Class::Bytes(ref cls)) => { in prefixes()
603 HirKind::Group(hir::Group { ref hir, .. }) => { in prefixes()
606 HirKind::Repetition(ref x) => match x.kind { in prefixes()
627 HirKind::Concat(ref es) if es.is_empty() => {} in prefixes()
628 HirKind::Concat(ref es) if es.len() == 1 => prefixes(&es[0], lits), in prefixes()
629 HirKind::Concat(ref es) => { in prefixes()
631 if let HirKind::Anchor(hir::Anchor::StartText) = *e.kind() { in prefixes()
650 HirKind::Alternation(ref es) => { in prefixes()
659 HirKind::Literal(hir::Literal::Unicode(c)) => { in suffixes()
666 HirKind::Literal(hir::Literal::Byte(b)) => { in suffixes()
669 HirKind::Class(hir::Class::Unicode(ref cls)) => { in suffixes()
674 HirKind::Class(hir::Class::Bytes(ref cls)) => { in suffixes()
679 HirKind::Group(hir::Group { ref hir, .. }) => { in suffixes()
682 HirKind::Repetition(ref x) => match x.kind { in suffixes()
703 HirKind::Concat(ref es) if es.is_empty() => {} in suffixes()
704 HirKind::Concat(ref es) if es.len() == 1 => suffixes(&es[0], lits), in suffixes()
705 HirKind::Concat(ref es) => { in suffixes()
707 if let HirKind::Anchor(hir::Anchor::EndText) = *e.kind() { in suffixes()
726 HirKind::Alternation(ref es) => { in suffixes()