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
use crate::records::generic_counter::GenericCounter;
use luaur_common::FFlag;

impl GenericCounter {
    pub fn check_limits(&mut self) {
        self.steps += 1;
        // FInt::LuauGenericCounterMaxSteps access
        if self.steps > 1000 {
            self.hit_limits = true;
        }
    }
}