luaur-compiler 0.1.3

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use luaur_ast::records::ast_stat_function::AstStatFunction;
use crate::records::shape_visitor::ShapeVisitor;

impl<'a> ShapeVisitor<'a> {
    pub fn visit_ast_stat_function(&mut self, node: *mut AstStatFunction) -> bool {
        unsafe {
            let node = &*node;
            self.assign(node.name);
            self.visit_ast_stat_local(node.func as *mut _);
        }

        false
    }
}