[][src]Trait antlr_rust::tree::ParseTreeVisitor

pub trait ParseTreeVisitor<'input, Node: ParserNodeType<'input>>: VisitChildren<'input, Node> {
    pub fn visit_terminal(&mut self, _node: &TerminalNode<'input, Node>) { ... }
pub fn visit_error_node(&mut self, _node: &ErrorNode<'input, Node>) { ... }
pub fn visit_children(&mut self, node: &Node::Type) { ... } }

Base interface for visiting over syntax tree

Provided methods

pub fn visit_terminal(&mut self, _node: &TerminalNode<'input, Node>)[src]

Called on terminal(leaf) node

pub fn visit_error_node(&mut self, _node: &ErrorNode<'input, Node>)[src]

Called on error node

pub fn visit_children(&mut self, node: &Node::Type)[src]

Implement this only if you want to change children visiting algorithm

Loading content...

Implementors

Loading content...