class Savi::AST::Function
- Savi::AST::Function
- Savi::AST::Node
- Reference
- Object
Defined in:
savi/ast.crConstructors
Instance Method Summary
- #body : AST::Group | Nil
- #body=(body : AST::Group | Nil)
- #cap : AST::Identifier
- #cap=(cap : AST::Identifier)
- #children_accept(ctx : Compiler::Context, visitor : Visitor)
- #children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor)
- #error_out : AST::Term | Nil
- #error_out=(error_out : AST::Term | Nil)
- #ident : AST::Identifier
- #ident=(ident : AST::Identifier)
- #name
- #params : AST::Group | Nil
- #params=(params : AST::Group | Nil)
- #ret : AST::Term | Nil
- #ret=(ret : AST::Term | Nil)
- #span_pos(source)
- #to_a : Array(A)
- #yield_in : AST::Term | Nil
- #yield_in=(yield_in : AST::Term | Nil)
- #yield_out : AST::Term | Nil
- #yield_out=(yield_out : AST::Term | Nil)
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)
#