class Savi::AST::Call

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.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(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) #

[View source]

Instance Method Detail

def args : Group | Nil #

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

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

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

[View source]
def ident : Identifier #

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

[View source]
def name #

[View source]
def receiver : Term #

[View source]
def receiver=(receiver : Term) #

[View source]
def span_pos(source) #

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

[View source]
def yield_block : Group | Nil #

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

[View source]
def yield_params : Group | Nil #

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

[View source]