class Stacklang::Function::Prototype

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(symbol : String, parameters : Array(Stacklang::Function::Prototype::Parameter), return_type : Stacklang::Type::Any | Nil, return_value_offset : Int32 | Nil) #

[View source]

Instance Method Detail


[View source]
def return_type : Stacklang::Type::Any? #

[View source]
def return_value_offset : Int32? #

[View source]
def symbol : String #

[View source]