luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::enums::value::Value;
use crate::records::error_suppression::ErrorSuppression;

impl ErrorSuppression {
    pub fn error_suppression_or_else(&self, other: &ErrorSuppression) -> ErrorSuppression {
        match self.error_suppression_value() {
            Value::DoNotSuppress => other.clone(),
            _ => self.clone(),
        }
    }
}