class

Syntax::MacroIf

Inherits Syntax::ASTNode < Reference < Object

if inside a macro

{% 'if' cond %}
  then
{% 'else' %}
  else
{% 'end' %}

Constructors

new(cond : Syntax::ASTNode, a_then = nil, a_else = nil)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
clone_without_location
Source
cond
Source
cond=(cond : ASTNode)
Source
else
Source
else=(else : ASTNode)
Source
hash(hasher)

See Object#hash(hasher)

then
Source
then=(then : ASTNode)
Source