class Stacklang::Function::Prototype
- Stacklang::Function::Prototype
- Reference
- Object
Overview
Represent all the metadata necessary to call the function. Contrary to all other stack relative offset in this file, offsets here a relative to the top of caller stack frame.
Defined in:
stacklang/compiler/function/function.crConstructors
Instance Method Summary
- #parameters : Array(Stacklang::Function::Prototype::Parameter)
- #return_type : Stacklang::Type::Any?
- #return_value_offset : Int32?
- #symbol : String
Constructor Detail
def self.new(symbol : String, parameters : Array(Stacklang::Function::Prototype::Parameter), return_type : Stacklang::Type::Any | Nil, return_value_offset : Int32 | Nil)
#