Home
last modified time | relevance | path

Searched refs:ClassSetItem (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/regex/regex-syntax/src/ast/
Dmod.rs925 Item(ClassSetItem),
933 ClassSet::Item(ClassSetItem::Union(ast)) in union()
947 ClassSet::Item(ClassSetItem::Empty(_)) => true, in is_empty()
955 pub enum ClassSetItem { enum
980 impl ClassSetItem { implementation
984 ClassSetItem::Empty(ref span) => span, in span()
985 ClassSetItem::Literal(ref x) => &x.span, in span()
986 ClassSetItem::Range(ref x) => &x.span, in span()
987 ClassSetItem::Ascii(ref x) => &x.span, in span()
988 ClassSetItem::Perl(ref x) => &x.span, in span()
[all …]
Dvisitor.rs59 _ast: &ast::ClassSetItem, in visit_class_set_item_pre() argument
69 _ast: &ast::ClassSetItem, in visit_class_set_item_post() argument
169 head: &'a ast::ClassSetItem,
171 tail: &'a [ast::ClassSetItem],
197 Item(&'a ast::ClassSetItem),
385 ClassInduct::Item(&ast::ClassSetItem::Bracketed(ref x)) => { in induct_class()
395 ClassInduct::Item(&ast::ClassSetItem::Union(ref x)) => { in induct_class()
494 ast::ClassSetItem::Empty(_) => "Item(Empty)", in fmt()
495 ast::ClassSetItem::Literal(_) => "Item(Literal)", in fmt()
496 ast::ClassSetItem::Range(_) => "Item(Range)", in fmt()
[all …]
Dparse.rs62 ) -> Result<ast::ClassSetItem> { in into_class_set_item() argument
64 use crate::ast::ClassSetItem; in into_class_set_item()
67 Literal(lit) => Ok(ClassSetItem::Literal(lit)), in into_class_set_item()
68 Perl(cls) => Ok(ClassSetItem::Perl(cls)), in into_class_set_item()
69 Unicode(cls) => Ok(ClassSetItem::Unicode(cls)), in into_class_set_item()
880 union.push(ast::ClassSetItem::Bracketed(Box::new(set))); in pop_class()
1757 union.push(ast::ClassSetItem::Ascii(cls)); in parse_set_class()
1806 fn parse_set_class_range(&self) -> Result<ast::ClassSetItem> { in parse_set_class_range() argument
1839 Ok(ast::ClassSetItem::Range(range)) in parse_set_class_range()
1911 union.push(ast::ClassSetItem::Literal(ast::Literal { in parse_set_class_open()
[all …]
Dprint.rs114 ast: &ast::ClassSetItem, in visit_class_set_item_pre() argument
117 ast::ClassSetItem::Bracketed(ref x) => { in visit_class_set_item_pre()
126 ast: &ast::ClassSetItem, in visit_class_set_item_post() argument
128 use crate::ast::ClassSetItem::*; in visit_class_set_item_post()
/third_party/rust/crates/regex/regex-syntax/src/hir/
Dtranslate.rs385 ast: &ast::ClassSetItem, in visit_class_set_item_pre() argument
388 ast::ClassSetItem::Bracketed(_) => { in visit_class_set_item_pre()
406 ast: &ast::ClassSetItem, in visit_class_set_item_post() argument
409 ast::ClassSetItem::Empty(_) => {} in visit_class_set_item_post()
410 ast::ClassSetItem::Literal(ref x) => { in visit_class_set_item_post()
422 ast::ClassSetItem::Range(ref x) => { in visit_class_set_item_post()
435 ast::ClassSetItem::Ascii(ref x) => { in visit_class_set_item_post()
448 ast::ClassSetItem::Unicode(ref x) => { in visit_class_set_item_post()
454 ast::ClassSetItem::Perl(ref x) => { in visit_class_set_item_post()
467 ast::ClassSetItem::Bracketed(ref ast) => { in visit_class_set_item_post()
[all …]