#![allow(nonstandard_style)] // Generated from VisitorBasic.g4 by ANTLR 4.8 use super::visitorbasicparser::*; use antlr_rust::tree::{ParseTreeVisitor, ParseTreeVisitorCompat}; use std::mem; /** * This interface defines a complete generic visitor for a parse tree produced * by {@link VisitorBasicParser}. */ pub trait VisitorBasicVisitor<'input>: ParseTreeVisitor<'input, VisitorBasicParserContextType> { /** * Visit a parse tree produced by {@link VisitorBasicParser#s}. * @param ctx the parse tree */ fn visit_s(&mut self, ctx: &SContext<'input>) { self.visit_children(ctx) } } pub trait VisitorBasicVisitorCompat<'input>: ParseTreeVisitorCompat<'input, Node = VisitorBasicParserContextType> { /** * Visit a parse tree produced by {@link VisitorBasicParser#s}. * @param ctx the parse tree */ fn visit_s(&mut self, ctx: &SContext<'input>) -> Self::Return { self.visit_children(ctx) } } impl<'input, T> VisitorBasicVisitor<'input> for T where T: VisitorBasicVisitorCompat<'input>, { fn visit_s(&mut self, ctx: &SContext<'input>) { let result = ::visit_s(self, ctx); *::temp_result(self) = result; } }