class Savi::AST::Call
- Savi::AST::Call
- Savi::AST::Node
- Reference
- Object
Overview
A Call node indicates a method call.
This is an internal AST type which has no direct source code syntax, because such a construct is only created inside sugar and macro expansions.
Defined in:
savi/ast.crConstructors
Instance Method Summary
- #args : Group | Nil
- #args=(args : Group | Nil)
- #children_accept(ctx : Compiler::Context, visitor : Visitor)
- #children_accept(ctx : Compiler::Context, visitor : CopyOnMutateVisitor)
- #ident : Identifier
- #ident=(ident : Identifier)
- #name
- #receiver : Term
- #receiver=(receiver : Term)
- #span_pos(source)
- #to_a : Array(A)
- #yield_block : Group | Nil
- #yield_block=(yield_block : Group | Nil)
- #yield_params : Group | Nil
- #yield_params=(yield_params : Group | 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(receiver : Savi::AST::Node, ident : Savi::AST::Identifier, args : Nil | Savi::AST::Group = nil, yield_params : Nil | Savi::AST::Group = nil, yield_block : Nil | Savi::AST::Group = nil)
#