luaur_analysis/methods/
expr_printer_visit_dump_cfg_alt_f.rs1use crate::records::expr_printer::ExprPrinter;
2use luaur_ast::functions::to_string_ast_alt_b::to_string_ast_expr_binary_op;
3use luaur_ast::records::ast_expr_binary::AstExprBinary;
4
5impl ExprPrinter {
6 pub fn visit_ast_expr_binary(&mut self, node: *mut AstExprBinary) -> bool {
7 unsafe {
8 let n = &*node;
9 self.visit_ast_expr(n.left);
10 self.result
11 .push_str(&format!(" {} ", to_string_ast_expr_binary_op(n.op)));
12 self.visit_ast_expr(n.right);
13 }
14 false
15 }
16}