Skip to main content

luaur_analysis/records/
function_signature.rs

1use crate::type_aliases::scope_ptr_constraint_generator::ScopePtr;
2use crate::type_aliases::type_id::TypeId;
3
4#[derive(Debug, Clone)]
5pub struct FunctionSignature {
6    /// The type of the function.
7    pub signature: TypeId,
8    /// The scope that encompasses the function's signature. May be nullptr
9    /// if there was no need for a signature scope (the function has no
10    /// generics).
11    pub signature_scope: ScopePtr,
12    /// The scope that encompasses the function's body. Is a child scope of
13    /// signatureScope, if present.
14    pub body_scope: ScopePtr,
15}