luaur-ast 0.1.2

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::records::ast_stat_declare_global::AstStatDeclareGlobal;
use crate::records::ast_visitor::AstVisitor;
use crate::visit::AstVisitable;

impl AstVisitable for AstStatDeclareGlobal {
    fn visit(&self, visitor: &mut dyn AstVisitor) {
        if visitor.visit_stat_declare_global(self as *const Self as *mut core::ffi::c_void) {
            unsafe {
                crate::visit::ast_type_visit(self.type_, visitor);
            }
        }
    }
}