Home
last modified time | relevance | path

Searched defs:Hir (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/regex/regex-syntax/src/hir/
Dtranslate.rs129 pub fn translate(&mut self, pattern: &str, ast: &Ast) -> Result<Hir> { in translate()
188 fn unwrap_expr(self) -> Hir { in unwrap_expr()
238 fn finish(self) -> Result<Hir> { in finish()
630 fn hir_literal(&self, lit: &ast::Literal) -> Result<Hir> { in hir_literal()
667 fn hir_from_char(&self, span: Span, c: char) -> Result<Hir> { in hir_from_char()
678 ) -> Result<Hir> { in hir_from_char_case_insensitive()
714 fn hir_dot(&self, span: Span) -> Result<Hir> { in hir_dot()
726 fn hir_assertion(&self, asst: &ast::Assertion) -> Result<Hir> { in hir_assertion()
769 fn hir_group(&self, group: &ast::Group, expr: Hir) -> Hir { in hir_group()
785 fn hir_repetition(&self, rep: &ast::Repetition, expr: Hir) -> Hir { in hir_repetition()
[all …]
Dvisitor.rs59 pub fn visit<V: Visitor>(hir: &Hir, visitor: V) -> Result<V::Output, V::Err> { in visit()
105 mut hir: &'a Hir, in visit()
195 fn child(&self) -> &'a Hir { in child()
Dmod.rs175 pub struct Hir { struct
177 kind: HirKind, argument
179 info: HirInfo, argument
217 impl Hir { impl
254 pub fn literal(lit: Literal) -> Hir { in literal()
275 pub fn class(class: Class) -> Hir { in class() method
292 pub fn anchor(anchor: Anchor) -> Hir { in anchor() method
325 pub fn word_boundary(word_boundary: WordBoundary) -> Hir { in word_boundary() method
352 pub fn repetition(rep: Repetition) -> Hir { in repetition()
379 pub fn group(group: Group) -> Hir { in group() method
[all …]
Dprint.rs67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print()
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/
Dmod.rs582 fn prefixes(expr: &Hir, lits: &mut Literals) { in prefixes()
655 fn suffixes(expr: &Hir, lits: &mut Literals) { in suffixes()
731 fn repeat_zero_or_one_literals<F: FnMut(&Hir, &mut Literals)>( in repeat_zero_or_one_literals()
750 fn repeat_zero_or_more_literals<F: FnMut(&Hir, &mut Literals)>( in repeat_zero_or_more_literals()
770 fn repeat_one_or_more_literals<F: FnMut(&Hir, &mut Literals)>( in repeat_one_or_more_literals()
779 fn repeat_range_literals<F: FnMut(&Hir, &mut Literals)>( in repeat_range_literals()
814 fn alternate_literals<F: FnMut(&Hir, &mut Literals)>( in alternate_literals()
1046 fn prefixes(lits: &mut Literals, expr: &Hir) { in prefixes()
1050 fn suffixes(lits: &mut Literals, expr: &Hir) { in suffixes()
/third_party/rust/crates/regex/regex-debug/src/
Dmain.rs291 fn parse_one(&self) -> Result<Hir> { in parse_one()
295 fn parse_many(&self) -> Result<Vec<Hir>> { in parse_many()
301 exprs: &[Hir], in literals()
329 fn parse(re: &str) -> Result<Hir> { in parse()
/third_party/rust/crates/regex/src/
Dcompile.rs167 exprs: &[Hir], in compile_many()
609 expr: &Hir, in c_repeat_zero_or_one()
629 expr: &Hir, in c_repeat_zero_or_more()
650 expr: &Hir, in c_repeat_one_or_more()
670 expr: &Hir, in c_repeat_range_min_or_more()
691 expr: &Hir, in c_repeat_range()
/third_party/rust/crates/regex/regex-syntax/src/
Dparser.rs195 pub fn parse(&mut self, pattern: &str) -> Result<hir::Hir> { in parse()