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
14
15
16
use crate::records::checkpoint::Checkpoint;
use crate::records::constraint_generator::ConstraintGenerator;

#[allow(non_snake_case)]
pub fn for_each_constraint<F>(
    start: Checkpoint,
    end: Checkpoint,
    cg: &ConstraintGenerator,
    mut f: F,
) where
    F: FnMut(*mut crate::records::constraint::Constraint),
{
    for i in start.offset..end.offset {
        f(cg.constraints[i]);
    }
}