gbf_core/decompiler/ast/visitors/
mod.rs#![deny(missing_docs)]
use super::{
assignable::AssignableKind, bin_op::BinaryOperationNode, expr::ExprKind,
identifier::IdentifierNode, literal::LiteralNode, member_access::MemberAccessNode,
meta::MetaNode, statement::StatementNode, unary_op::UnaryOperationNode, AstKind,
};
pub mod emit_context;
pub mod emitter;
pub trait AstVisitor {
fn visit_node(&mut self, node: &AstKind);
fn visit_statement(&mut self, node: &StatementNode);
fn visit_expr(&mut self, node: &ExprKind);
fn visit_assignable_expr(&mut self, node: &AssignableKind);
fn visit_bin_op(&mut self, node: &BinaryOperationNode);
fn visit_unary_op(&mut self, node: &UnaryOperationNode);
fn visit_identifier(&mut self, node: &IdentifierNode);
fn visit_literal(&mut self, node: &LiteralNode);
fn visit_member_access(&mut self, node: &MemberAccessNode);
fn visit_meta(&mut self, node: &MetaNode);
fn visit_function_call(&mut self, node: &super::func_call::FunctionCallNode);
fn visit_function(&mut self, node: &super::function::FunctionNode);
fn visit_return(&mut self, node: &super::ret::ReturnNode);
}