Lines Matching refs:Ast
443 pub ast: Ast,
469 pub enum Ast { enum
493 impl Ast { implementation
497 Ast::Empty(ref span) => span, in span()
498 Ast::Flags(ref x) => &x.span, in span()
499 Ast::Literal(ref x) => &x.span, in span()
500 Ast::Dot(ref span) => span, in span()
501 Ast::Assertion(ref x) => &x.span, in span()
502 Ast::Class(ref x) => x.span(), in span()
503 Ast::Repetition(ref x) => &x.span, in span()
504 Ast::Group(ref x) => &x.span, in span()
505 Ast::Alternation(ref x) => &x.span, in span()
506 Ast::Concat(ref x) => &x.span, in span()
513 Ast::Empty(_) => true, in is_empty()
522 Ast::Empty(_) in has_subexprs()
523 | Ast::Flags(_) in has_subexprs()
524 | Ast::Literal(_) in has_subexprs()
525 | Ast::Dot(_) in has_subexprs()
526 | Ast::Assertion(_) => false, in has_subexprs()
527 Ast::Class(_) in has_subexprs()
528 | Ast::Repetition(_) in has_subexprs()
529 | Ast::Group(_) in has_subexprs()
530 | Ast::Alternation(_) in has_subexprs()
531 | Ast::Concat(_) => true, in has_subexprs()
544 impl fmt::Display for Ast { implementation
557 pub asts: Vec<Ast>,
566 pub fn into_ast(mut self) -> Ast { in into_ast() argument
568 0 => Ast::Empty(self.span), in into_ast()
570 _ => Ast::Alternation(self), in into_ast()
581 pub asts: Vec<Ast>,
590 pub fn into_ast(mut self) -> Ast { in into_ast() argument
592 0 => Ast::Empty(self.span), in into_ast()
594 _ => Ast::Concat(self), in into_ast()
1127 pub ast: Box<Ast>,
1190 pub ast: Box<Ast>,
1359 impl Drop for Ast { implementation
1364 Ast::Empty(_) in drop()
1365 | Ast::Flags(_) in drop()
1366 | Ast::Literal(_) in drop()
1367 | Ast::Dot(_) in drop()
1368 | Ast::Assertion(_) in drop()
1370 | Ast::Class(_) => return, in drop()
1371 Ast::Repetition(ref x) if !x.ast.has_subexprs() => return, in drop()
1372 Ast::Group(ref x) if !x.ast.has_subexprs() => return, in drop()
1373 Ast::Alternation(ref x) if x.asts.is_empty() => return, in drop()
1374 Ast::Concat(ref x) if x.asts.is_empty() => return, in drop()
1379 let empty_ast = || Ast::Empty(empty_span()); in drop()
1383 Ast::Empty(_) in drop()
1384 | Ast::Flags(_) in drop()
1385 | Ast::Literal(_) in drop()
1386 | Ast::Dot(_) in drop()
1387 | Ast::Assertion(_) in drop()
1389 | Ast::Class(_) => {} in drop()
1390 Ast::Repetition(ref mut x) => { in drop()
1393 Ast::Group(ref mut x) => { in drop()
1396 Ast::Alternation(ref mut x) => { in drop()
1399 Ast::Concat(ref mut x) => { in drop()
1482 let mut ast = Ast::Empty(span()); in no_stack_overflow_on_drop()
1484 ast = Ast::Group(Group { in no_stack_overflow_on_drop()