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

#include <ast.h>

Inheritance diagram for ConditionalExprNode:

Public Member Functions

virtual U32 precompile (TypeReq type)
virtual U32 compile (U32 *codeStream, U32 ip, TypeReq type)
virtual TypeReq getPreferredType ()
Public Member Functions inherited from ExprNode
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)
StmtNode * getNext ()
void addBreakCount ()
void addBreakLine (U32 ip)
virtual void setPackage (StringTableEntry packageName)

Static Public Member Functions

static ConditionalExprNode * alloc (ExprNode *testExpr, ExprNode *trueExpr, ExprNode *falseExpr)

Public Attributes

ExprNode * testExpr
ExprNode * trueExpr
ExprNode * falseExpr
bool integer
Public Attributes inherited from StmtNode
StmtNode * next
 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()

ConditionalExprNode * alloc ( ExprNode * testExpr,
ExprNode * trueExpr,
ExprNode * falseExpr )
static

◆ compile()

U32 compile ( U32 * codeStream,
U32 ip,
TypeReq type )
virtual

Implements ExprNode.

◆ getPreferredType()

TypeReq getPreferredType ( )
virtual

Implements ExprNode.

◆ precompile()

U32 precompile ( TypeReq type)
virtual

Implements ExprNode.

Member Data Documentation

◆ falseExpr

ExprNode* falseExpr

◆ integer

bool integer

◆ testExpr

ExprNode* testExpr

◆ trueExpr

ExprNode* trueExpr

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