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.crInstance Method Summary
-
#expressions : ArrayLiteral
Returns the associated indices of the fresh variable.
-
#name : MacroId
Returns the name of the fresh variable.