IterStmtNode

Engine/source/console/ast.h

A "foreach" statement.

More...

Public Attributes

The statement body.

Bytecode size of body statement. Set by precompileStmt.

Expression evaluating to a SimSet object.

bool

If true, this is a 'foreach$'.

Local variable name to use for the container element.

Public Static Functions

alloc(S32 lineNumber, StringTableEntry varName, ExprNode * containerExpr, StmtNode * body, bool isStringIter)

Public Functions

compileStmt(CodeStream & codeStream, U32 ip)

Detailed Description

A "foreach" statement.

Public Attributes

StmtNode * body 

The statement body.

U32 bodySize 

Bytecode size of body statement. Set by precompileStmt.

ExprNode * containerExpr 

Expression evaluating to a SimSet object.

bool isStringIter 

If true, this is a 'foreach$'.

StringTableEntry varName 

Local variable name to use for the container element.

Public Static Functions

alloc(S32 lineNumber, StringTableEntry varName, ExprNode * containerExpr, StmtNode * body, bool isStringIter)

Public Functions

compileStmt(CodeStream & codeStream, U32 ip)

Reimplemented from: StmtNode