class Crystal::Macros::Block

Overview

A code block.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def args : ArrayLiteral(MacroId) #

Returns the blocks arguments.


[View source]
def body : ASTNode #

Returns the block's body, if any.


[View source]
def splat_index : NumberLiteral | NilLiteral #

Returns the index of the argument with a *splat, if any.


[View source]