Skip to content

class Crystal::MacroFor
inherits Crystal::ASTNode

for inside a macro:

{% for x1, x2, ..., xn in exp %} body {% end %}

Included modules

Crystal::ExpandableNode

Class methods

.new(vars, exp, body)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#body=(body : ASTNode)

View source

#clone_without_location

View source

#exp=(exp : ASTNode)

View source

#hash(hasher)

#vars : Array(Var)

View source

#vars=(vars : Array(Var))

View source