Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ConstantNode Struct Reference

`#include <ast.h>`

Inheritance diagram for ConstantNode:

## Public Member Functions
U32 | precompile (TypeReq type)
U32 | compile (U32 *codeStream, U32 ip, TypeReq type)
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 ConstantNode * | alloc (StringTableEntry value)

## Public Attributes
StringTableEntry | value
F64 | fVal
U32 | index
Public Attributes inherited from StmtNode
StmtNode * | next
| Next entry in parse tree. More...
StringTableEntry | dbgFileName
| Name of file this node is associated with. More...
S32 | dbgLineNumber

## Member Function Documentation

ConstantNode * alloc | ( | StringTableEntry | value | ) |
| static

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

Implements ExprNode.

TypeReq getPreferredType | ( |  | ) |
| virtual

Implements ExprNode.

U32 precompile | ( | TypeReq | type | ) |
| virtual

Implements ExprNode.

## Member Data Documentation

F64 fVal

U32 index

StringTableEntry value

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

- console/ast.h
- console/astAlloc.cc
- console/astNodes.cc