struct

Ast::Call

Inherits Ast::Expr < IrNode < Struct < Value < Object

Constructors

new(location : Location, method : ::String, type_args : Slice(Type) | ::Nil, args : Args)
Source
new(location : Location, method : ::String, args : Args = [] of Expr, type_args : Slice(Type) | ::Nil = nil)
Source
new(location : Location, method : ::String, type_args : Slice(Type) | ::Nil = nil)

def initialize(@location : Location, @method : ::String, args : ::Array(Expr), @type_args : Slice(Type)? = nil) @args = args.map { |arg| {nil.as(Convention), arg.as(Expr)} } end def initialize(@location : Location, @method : ::String, @type_args : Slice(Type), args : ::Array(Expr)) @args = args.map { |arg| {nil.as(Convention), arg.as(Expr)} } end

Source
new(method : ::String, args : Args, type_args : Slice(Type) | ::Nil = nil)
Source

Instance methods

args
Source
args=(args : Args)
Source
count_args
Source
location
Source
location=(location : Location)
Source
method
Source
method=(method : ::String)
Source
receiver?
Source
to_s(io : IO)

Same as #inspect(io).

Source
type_args
Source
type_args=(type_args : Slice(Type) | ::Nil)
Source