Lines Matching refs:Ast
3 use ast::{self, Ast};
38 fn visit_pre(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_pre()
44 fn visit_post(&mut self, _ast: &Ast) -> Result<(), Self::Err> { in visit_post()
119 pub fn visit<V: Visitor>(ast: &Ast, visitor: V) -> Result<V::Output, V::Err> { in visit() argument
128 stack: Vec<(&'a Ast, Frame<'a>)>,
148 head: &'a Ast,
150 tail: &'a [Ast],
156 head: &'a Ast,
158 tail: &'a [Ast],
208 mut ast: &'a Ast, in visit() argument
258 ast: &'a Ast, in induct() argument
262 Ast::Class(ast::Class::Bracketed(ref x)) => { in induct()
266 Ast::Repetition(ref x) => Some(Frame::Repetition(x)), in induct()
267 Ast::Group(ref x) => Some(Frame::Group(x)), in induct()
268 Ast::Concat(ref x) if x.asts.is_empty() => None, in induct()
269 Ast::Concat(ref x) => { in induct()
272 Ast::Alternation(ref x) if x.asts.is_empty() => None, in induct()
273 Ast::Alternation(ref x) => Some(Frame::Alternation { in induct()
440 fn child(&self) -> &'a Ast { in child() argument