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::normalizer::Normalizer;
use crate::records::normalizer_hit_limits::NormalizerHitLimits;

impl Normalizer {
    pub fn consume_fuel(&mut self) {
        if let Some(fuel) = self.fuel.as_mut() {
            *fuel -= 1;
            if *fuel <= 0 {
                std::panic::resume_unwind(Box::new(NormalizerHitLimits::default()));
            }
        }
    }
}