class Crystal::Macros::MacroVar

Overview

A macro fresh variable.

Every variable node is equivalent to:

{{ "%#{name}".id }}{% if expressions = node.expressions %}{{ "{#{expressions.splat}}".id }}{% end %}

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def expressions : ArrayLiteral #

Returns the associated indices of the fresh variable.


[View source]
def name : MacroId #

Returns the name of the fresh variable.


[View source]