class

Crystal::Macros::MacroVar

Inherits Crystal::Macros::ASTNode

A macro fresh variable.

Every variable node is equivalent to:

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

Instance methods

expressions

Returns the associated indices of the fresh variable.

Source
name

Returns the name of the fresh variable.

Source