class Crystal::Macros::MacroExpression
Overview
A macro expression.
Every expression node is equivalent to:
{% if node.output? %}
\{{ {{ node.exp }} }}
{% else %}
\{% {{ node.exp }} %}
{% end %}
Defined in:
compiler/crystal/macros.crInstance Method Summary
-
#exp : ASTNode
Returns the expression inside this node.
-
#output? : BoolLiteral
Returns whether this node interpolates the expression's result.