Skip to main content

luaur_analysis/methods/
ast_json_encoder_write_node_ast_json_encoder.rs

1use crate::records::ast_json_encoder::AstJsonEncoder;
2use luaur_ast::records::ast_node::AstNode;
3
4impl AstJsonEncoder {
5    pub fn write_node_ast_node(&mut self, node: *mut AstNode) {
6        unsafe {
7            self.write("location", &(*node).location);
8        }
9    }
10}