Skip to main content

luaur_analysis/functions/
contains_toposortable_node.rs

1use crate::functions::is_toposortable_node::is_toposortable_node;
2use luaur_ast::records::ast_stat::AstStat;
3
4pub fn contains_toposortable_node(block: &alloc::vec::Vec<AstStat>) -> bool {
5    for stat in block {
6        if is_toposortable_node(stat) {
7            return true;
8        }
9    }
10
11    false
12}