class Crystal::Macros::Call

Overview

A method call.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def args : ArrayLiteralSource

Returns this call's arguments.

def block : Block | NopSource

Returns this call's block, if any.

def block_arg : ASTNode | NopSource

Returns this call's block argument, if any

def id : MacroIdSource

Returns this call's name as a MacroId.

def name : MacroIdSource

Returns the method name of this call.

def named_args : ArrayLiteral(NamedArgument)Source

Returns this call's named arguments.

def receiver : ASTNode | NopSource

Returns this call's receiver, if any.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/Call.html