class Axal::AST::FunctionDefinition

Defined in:

lang/ast/function_definition.cr

Constructors

Instance Method Summary

Instance methods inherited from class Axal::AST::Expression

==(other) ==, children children, type type, value : Expression | ::Nil | String | ::Nil | Float64 | ::Nil | Bool | ::Nil value

Constructor methods inherited from class Axal::AST::Expression

new(value : Axal::AST::Expression | Bool | Float64 | String | ::Nil = nil) new

Constructor Detail

def self.new(name : Axal::AST::Identifier, params : Array(Axal::AST::Identifier) = [] of Identifier, body : ::Nil | Axal::AST::Block = nil) #

[View source]

Instance Method Detail

def ==(other : Expression) #

[View source]
def body : Block | ::Nil #

[View source]
def body=(body : Block | ::Nil) #

[View source]
def children #

[View source]
def function_name_as_str #

[View source]
def module_name : Identifier | ::Nil #

[View source]
def module_name=(module_name : Identifier | ::Nil) #

[View source]
def name : Identifier #

[View source]
def params : Array(Identifier) #

[View source]
def params=(params : Array(Identifier)) #

[View source]