Torque2D Reference
Loading...
Searching...
No Matches
IfStmtNode Struct Reference

#include <ast.h>

Inheritance diagram for IfStmtNode:

Public Member Functions

void propagateSwitchExpr (ExprNode *left, bool string)
ExprNodegetSwitchOR (ExprNode *left, ExprNode *list, bool string)
U32 precompileStmt (U32 loopCount)
U32 compileStmt (U32 *codeStream, U32 ip, U32 continuePoint, U32 breakPoint)
Public Member Functions inherited from StmtNode
 StmtNode ()
void append (StmtNode *next)
StmtNodegetNext ()
void addBreakCount ()
void addBreakLine (U32 ip)
virtual void setPackage (StringTableEntry packageName)

Static Public Member Functions

static IfStmtNodealloc (S32 lineNumber, ExprNode *testExpr, StmtNode *ifBlock, StmtNode *elseBlock, bool propagateThrough)

Public Attributes

ExprNodetestExpr
StmtNodeifBlock
StmtNodeelseBlock
U32 endifOffset
U32 elseOffset
bool integer
bool propagate
Public Attributes inherited from StmtNode
StmtNodenext
 Next entry in parse tree.
StringTableEntry dbgFileName
 Name of file this node is associated with.
S32 dbgLineNumber
 Line number this node is associated with.

Member Function Documentation

◆ alloc()

IfStmtNode * alloc ( S32 lineNumber,
ExprNode * testExpr,
StmtNode * ifBlock,
StmtNode * elseBlock,
bool propagateThrough )
static

◆ compileStmt()

U32 compileStmt ( U32 * codeStream,
U32 ip,
U32 continuePoint,
U32 breakPoint )
virtual

Implements StmtNode.

◆ getSwitchOR()

ExprNode * getSwitchOR ( ExprNode * left,
ExprNode * list,
bool string )

◆ precompileStmt()

U32 precompileStmt ( U32 loopCount)
virtual

Implements StmtNode.

◆ propagateSwitchExpr()

void propagateSwitchExpr ( ExprNode * left,
bool string )

Member Data Documentation

◆ elseBlock

StmtNode * elseBlock

◆ elseOffset

U32 elseOffset

◆ endifOffset

U32 endifOffset

◆ ifBlock

StmtNode* ifBlock

◆ integer

bool integer

◆ propagate

bool propagate

◆ testExpr

ExprNode* testExpr

The documentation for this struct was generated from the following files: