IfStmtNode Struct Reference

#include <ast.h>

Inheritance diagram for IfStmtNode:

Inheritance graph
[legend]
List of all members.

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)

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

Member Function Documentation

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

void IfStmtNode::propagateSwitchExpr ( ExprNode left,
bool  string 
)

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

U32 IfStmtNode::precompileStmt ( U32  loopCount  )  [virtual]

Implements StmtNode.

U32 IfStmtNode::compileStmt ( U32 codeStream,
U32  ip,
U32  continuePoint,
U32  breakPoint 
) [virtual]

Implements StmtNode.


Member Data Documentation