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::type_aliases::type_id::TypeId;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct UnknownProperty {
    pub(crate) table: TypeId,
    pub(crate) key: alloc::string::String,
}

#[allow(non_snake_case)]
impl UnknownProperty {
    pub fn table(&self) -> TypeId {
        self.table
    }

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