Overview
ABlock represents a block of statements in the Lua AST, such as those found in if/do/while blocks and function bodies.
Struct Definition
Fields
stmts: A vector of statements with optional semicolon tokenslast_stmt: An optional last statement (return or break) with optional semicolon
Methods
Constructor
Accessors
local foo = 1.
Note that this does not contain the final statement which can be attained via Block::last_stmt.
return foo.
Builders
LastStmt Enum
The last statement of aBlock.
Return Struct
Areturn statement.
Methods
return token.
return token.