luaur-compiler 0.1.2

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::records::cost::Cost;
use crate::records::cost_visitor::CostVisitor;

impl CostVisitor {
    pub fn visit_ast_stat_break(&mut self, _node: *mut core::ffi::c_void) -> bool {
        self.result.add_assign(&Cost::new(1, 0));
        false
    }
}