class Magiika::Node::DefFn

Defined in:

node/stmt/define/define_fn.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Magiika::Node

eval(scope : Scope) : Node eval, eval_bool(scope : Scope) : ::Bool eval_bool, position : Position position, position! : Position position!, position? : Position | ::Nil position?, to_s : String to_s, to_s_internal : String to_s_internal, type_name : String type_name

Constructor methods inherited from class Magiika::Node

new(position : Position | ::Nil = nil) new

Class methods inherited from class Magiika::Node

to_s : String to_s, to_s_internal : String to_s_internal, type_name : String type_name

Constructor Detail

def self.new(static : ::Bool, name : String, params : FnParams, statements : Array(Node), returns : FnRet | ::Nil = nil, access : Access = Access::Public, position : Position | ::Nil = nil) #

[View source]

Class Method Detail

def self.type_name : String #

[View source]

Instance Method Detail

def eval(scope : Scope) : TypeNode #

[View source]
def name : String #

[View source]
def returns : FnRet | ::Nil #

[View source]
def static? : ::Bool #

[View source]