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::cannot_assign_to_never::CannotAssignToNever;

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

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

        self.rhsType == rhs.rhsType && self.reason == rhs.reason
    }
}