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
17
18
use crate::records::missing_union_property::MissingUnionProperty;

impl MissingUnionProperty {
    #[inline]
    pub fn operator_eq(&self, rhs: &MissingUnionProperty) -> bool {
        if self.missing.len() != rhs.missing.len() {
            return false;
        }

        for i in 0..self.missing.len() {
            if self.missing[i] != rhs.missing[i] {
                return false;
            }
        }

        self.r#type == rhs.r#type && self.key == rhs.key
    }
}