luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::records::expr_printer::ExprPrinter;
use luaur_ast::functions::to_string_ast_alt_b::to_string_ast_expr_binary_op;
use luaur_ast::records::ast_expr_binary::AstExprBinary;

impl ExprPrinter {
    pub fn visit_ast_expr_binary(&mut self, node: *mut AstExprBinary) -> bool {
        unsafe {
            let n = &*node;
            self.visit_ast_expr(n.left);
            self.result
                .push_str(&format!(" {} ", to_string_ast_expr_binary_op(n.op)));
            self.visit_ast_expr(n.right);
        }
        false
    }
}