luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::functions::is_toposortable_node::is_toposortable_node;
use luaur_ast::records::ast_stat::AstStat;

pub fn contains_toposortable_node(block: &alloc::vec::Vec<AstStat>) -> bool {
    for stat in block {
        if is_toposortable_node(stat) {
            return true;
        }
    }

    false
}