class Crystal::Macros::MacroFor

Overview

A for loop inside a macro, e.g.

{% for x in exp %}
  puts {{x}}
{% end %}

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def body : ASTNode #

The body of the for loop.


[View source]
def exp : ASTNode #

The expression after in.


[View source]
def vars : ArrayLiteral(Var) #

The variables declared after for.


[View source]