luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
use crate::type_aliases::type_id::TypeId;
use alloc::string::String;
use alloc::vec::Vec;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct MissingUnionProperty {
    pub(crate) r#type: TypeId,
    pub(crate) missing: Vec<TypeId>,
    pub(crate) key: String,
}

#[allow(non_snake_case)]
impl MissingUnionProperty {
    pub fn r#type(&self) -> TypeId {
        self.r#type
    }

    pub fn missing(&self) -> &[TypeId] {
        &self.missing
    }

    pub fn key(&self) -> &str {
        &self.key
    }
}