class Savi::AST::Function

Defined in:

savi/ast.cr

Constructors

Instance Method Summary

Instance methods inherited from class Savi::AST::Node

accept(ctx : Compiler::Context, visitor : Visitor)
accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor)
accept
, annotations : Array(Annotation) | Nil annotations, annotations=(annotations : Array(Annotation) | Nil) annotations=, children_accept(ctx : Compiler::Context, visitor : Visitor)
children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor)
children_accept
, from(other : Node) from, pos pos, pos? : Savi::Source::Pos? pos?, span_pos(source) span_pos, with_pos(pos : Source::Pos) with_pos

Constructor Detail

def self.new(cap : Savi::AST::Identifier, ident : Savi::AST::Identifier, params : Nil | Savi::AST::Group = nil, ret : Savi::AST::Node | Nil = nil, body : Nil | Savi::AST::Group = nil) #

[View source]

Instance Method Detail

def body : AST::Group | Nil #

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

[View source]
def cap : AST::Identifier #

[View source]
def cap=(cap : AST::Identifier) #

[View source]
def children_accept(ctx : Compiler::Context, visitor : Visitor) #

[View source]
def children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor) #

[View source]
def error_out : AST::Term | Nil #

[View source]
def error_out=(error_out : AST::Term | Nil) #

[View source]
def ident : AST::Identifier #

[View source]
def ident=(ident : AST::Identifier) #

[View source]
def name #

[View source]
def params : AST::Group | Nil #

[View source]
def params=(params : AST::Group | Nil) #

[View source]
def ret : AST::Term | Nil #

[View source]
def ret=(ret : AST::Term | Nil) #

[View source]
def span_pos(source) #

[View source]
def to_a : Array(A) #

[View source]
def yield_in : AST::Term | Nil #

[View source]
def yield_in=(yield_in : AST::Term | Nil) #

[View source]
def yield_out : AST::Term | Nil #

[View source]
def yield_out=(yield_out : AST::Term | Nil) #

[View source]