Searched refs:HirKind (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/regex-syntax/src/hir/ |
D | print.rs | 8 use hir::{self, Hir, HirKind}; 88 HirKind::Empty in visit_pre() 89 | HirKind::Repetition(_) in visit_pre() 90 | HirKind::Concat(_) in visit_pre() 91 | HirKind::Alternation(_) => {} in visit_pre() 92 HirKind::Literal(hir::Literal::Unicode(c)) => { in visit_pre() 95 HirKind::Literal(hir::Literal::Byte(b)) => { in visit_pre() 98 HirKind::Class(hir::Class::Unicode(ref cls)) => { in visit_pre() 111 HirKind::Class(hir::Class::Bytes(ref cls)) => { in visit_pre() 124 HirKind::Anchor(hir::Anchor::StartLine) => { in visit_pre() [all …]
|
D | visitor.rs | 1 use hir::{self, Hir, HirKind}; 151 HirKind::Repetition(ref x) => Some(Frame::Repetition(x)), in induct() 152 HirKind::Group(ref x) => Some(Frame::Group(x)), in induct() 153 HirKind::Concat(ref x) if x.is_empty() => None, in induct() 154 HirKind::Concat(ref x) => { in induct() 157 HirKind::Alternation(ref x) if x.is_empty() => None, in induct() 158 HirKind::Alternation(ref x) => { in induct()
|
D | mod.rs | 177 kind: HirKind, 184 pub enum HirKind { enum 219 pub fn kind(&self) -> &HirKind { in kind() argument 225 pub fn into_kind(mut self) -> HirKind { in into_kind() argument 227 mem::replace(&mut self.kind, HirKind::Empty) in into_kind() 246 Hir { kind: HirKind::Empty, info: info } in empty() 271 Hir { kind: HirKind::Literal(lit), info: info } in literal() 288 Hir { kind: HirKind::Class(class), info: info } in class() 321 Hir { kind: HirKind::Anchor(anchor), info: info } in anchor() 344 Hir { kind: HirKind::WordBoundary(word_boundary), info: info } in word_boundary() [all …]
|
D | translate.rs | 1110 use hir::{self, Hir, HirKind}; 1298 HirKind::Class(mut cls) => { in hir_case_fold() 1308 HirKind::Class(mut cls) => { in hir_negate() 1321 (HirKind::Class(Unicode(mut c1)), HirKind::Class(Unicode(c2))) => { in hir_union() 1325 (HirKind::Class(Bytes(mut c1)), HirKind::Class(Bytes(c2))) => { in hir_union() 1338 (HirKind::Class(Unicode(mut c1)), HirKind::Class(Unicode(c2))) => { in hir_difference() 1342 (HirKind::Class(Bytes(mut c1)), HirKind::Class(Bytes(c2))) => { in hir_difference()
|
/external/rust/crates/regex-syntax/src/hir/literal/ |
D | mod.rs | 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() [all …]
|
/external/rust/crates/regex-automata/src/nfa/ |
D | compiler.rs | 37 use regex_syntax::hir::{self, Hir, HirKind}; 394 HirKind::Empty => { in c() 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() 414 HirKind::Repetition(ref rep) => self.c_repetition(rep), in c() 415 HirKind::Group(ref group) => self.c(&*group.hir), in c() 416 HirKind::Concat(ref exprs) => { in c() 419 HirKind::Alternation(ref exprs) => { in c() [all …]
|
/external/rust/crates/regex/src/ |
D | exec.rs | 1553 use syntax::hir::{HirKind, Literal}; in alternation_literals() 1567 HirKind::Alternation(ref alts) => alts, in alternation_literals() 1585 HirKind::Literal(ref x) => extendlit(x, &mut lit), in alternation_literals() 1586 HirKind::Concat(ref exprs) => { in alternation_literals() 1589 HirKind::Literal(ref x) => extendlit(x, &mut lit), in alternation_literals()
|
D | compile.rs | 257 use syntax::hir::HirKind::*; in c()
|