class Stacklang::AST::Function

Defined in:

stacklang/ast.cr

Constructors

Instance Method Summary

Instance methods inherited from class Stacklang::AST

character character, dump(io, indent = 0) dump, line line, to_s(io : IO) to_s, token : Tokenizer::Token | Nil token, token=(token : Tokenizer::Token | Nil) token=

Constructor Detail

def self.new(token, name : Identifier, parameters : Array(Parameter), return_type : Type | Nil, body : Array(Statement), extern : Bool) #

[View source]

Instance Method Detail

def body : Array(Stacklang::AST::Statement) #

[View source]
def dump(io, indent = 0) #

[View source]
def extern : Bool #

[View source]

[View source]
def parameters : Array(Stacklang::AST::Function::Parameter) #

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

[View source]