torque Torque Game Engine Documentation
TGE Version 1.5.2

IfStmtNode Struct Reference

#include <ast.h>

Inheritance diagram for IfStmtNode:

Inheritance graph
[legend]

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)

Data Fields

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.


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen