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
use crate::records::find_full_ancestry::FindFullAncestry;
use luaur_ast::records::ast_node::AstNode;
use luaur_ast::records::ast_type::AstType;

impl FindFullAncestry {
    pub fn visit_ast_type(&mut self, r#type: *mut AstType) -> bool {
        if self.include_types {
            self.visit_ast_node(r#type as *mut AstNode)
        } else {
            false
        }
    }
}