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
13
use crate::records::normalizer::Normalizer;
use luaur_common::FInt;

impl Normalizer {
    pub fn initialize_fuel(&mut self) -> bool {
        if self.fuel.is_some() {
            return false;
        }

        self.fuel = Some(luaur_common::FInt::LuauNormalizerInitialFuel.get());
        true
    }
}