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
use crate::type_aliases::scope_ptr_constraint_generator::ScopePtr;
use crate::type_aliases::type_id::TypeId;

#[derive(Debug, Clone)]
pub struct FunctionSignature {
    /// The type of the function.
    pub signature: TypeId,
    /// The scope that encompasses the function's signature. May be nullptr
    /// if there was no need for a signature scope (the function has no
    /// generics).
    pub signature_scope: ScopePtr,
    /// The scope that encompasses the function's body. Is a child scope of
    /// signatureScope, if present.
    pub body_scope: ScopePtr,
}