Lua.AST.Statement.ForNum (Lua v1.0.0-rc.1)

View Source

Represents a numeric for loop: for var = start, limit, step do block end

The step is optional and defaults to 1.

Summary

Types

t()

@type t() :: %Lua.AST.Statement.ForNum{
  body: Lua.AST.Block.t(),
  limit: Lua.AST.Expr.t(),
  meta: Lua.AST.Meta.t() | nil,
  start: Lua.AST.Expr.t(),
  step: Lua.AST.Expr.t() | nil,
  var: String.t()
}