LLScriptStatement Class Reference

#include <lscript_tree.h>

Inheritance diagram for LLScriptStatement:

Inheritance graph
[legend]
Collaboration diagram for LLScriptStatement:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScriptStatement (S32 line, S32 col, LSCRIPTStatementType type)
virtual ~LLScriptStatement ()
void addStatement (LLScriptStatement *event)
void recurse (FILE *fp, S32 tabs, S32 tabsize, LSCRIPTCompilePass pass, LSCRIPTPruneType ptype, BOOL &prunearg, LLScriptScope *scope, LSCRIPTType &type, LSCRIPTType basetype, U64 &count, LLScriptByteCodeChunk *chunk, LLScriptByteCodeChunk *heap, S32 stacksize, LLScriptScopeEntry *entry, S32 entrycount, LLScriptLibData **ldata)
void gonext (FILE *fp, S32 tabs, S32 tabsize, LSCRIPTCompilePass pass, LSCRIPTPruneType ptype, BOOL &prunearg, LLScriptScope *scope, LSCRIPTType &type, LSCRIPTType basetype, U64 &count, LLScriptByteCodeChunk *chunk, LLScriptByteCodeChunk *heap, S32 stacksize, LLScriptScopeEntry *entry, S32 entrycount, LLScriptLibData **ldata)
S32 getSize ()

Public Attributes

LSCRIPTStatementType mType
LLScriptStatementmNextp
LLScriptScopemStatementScope
BOOL mAllowDeclarations

Detailed Description

Definition at line 1789 of file lscript_tree.h.


Constructor & Destructor Documentation

LLScriptStatement::LLScriptStatement ( S32  line,
S32  col,
LSCRIPTStatementType  type 
) [inline]

Definition at line 1792 of file lscript_tree.h.

virtual LLScriptStatement::~LLScriptStatement (  )  [inline, virtual]

Definition at line 1797 of file lscript_tree.h.

References mStatementScope.


Member Function Documentation

void LLScriptStatement::addStatement ( LLScriptStatement event  ) 

Definition at line 7332 of file lscript_tree.cpp.

References mNextp.

S32 LLScriptStatement::getSize (  )  [virtual]

Implements LLScriptFilePosition.

Reimplemented in LLScriptStatementSequence, LLScriptNOOP, LLScriptStateChange, LLScriptJump, LLScriptLabel, LLScriptReturn, LLScriptExpressionStatement, LLScriptIf, LLScriptIfElse, LLScriptFor, LLScriptDoWhile, LLScriptWhile, LLScriptDeclaration, and LLScriptCompoundStatement.

Definition at line 7346 of file lscript_tree.cpp.

void LLScriptStatement::gonext ( FILE *  fp,
S32  tabs,
S32  tabsize,
LSCRIPTCompilePass  pass,
LSCRIPTPruneType  ptype,
BOOL prunearg,
LLScriptScope scope,
LSCRIPTType type,
LSCRIPTType  basetype,
U64 count,
LLScriptByteCodeChunk chunk,
LLScriptByteCodeChunk heap,
S32  stacksize,
LLScriptScopeEntry entry,
S32  entrycount,
LLScriptLibData **  ldata 
)

Definition at line 7352 of file lscript_tree.cpp.

References gErrorToText, LLScriptGenerateErrorText::getErrors(), LSCP_EMIT_ASSEMBLY, LSCP_PRETTY_PRINT, mNextp, and NULL.

Referenced by LLScriptCompoundStatement::recurse(), LLScriptDeclaration::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptExpressionStatement::recurse(), LLScriptReturn::recurse(), LLScriptLabel::recurse(), LLScriptJump::recurse(), LLScriptStateChange::recurse(), LLScriptNOOP::recurse(), and LLScriptStatementSequence::recurse().

void LLScriptStatement::recurse ( FILE *  fp,
S32  tabs,
S32  tabsize,
LSCRIPTCompilePass  pass,
LSCRIPTPruneType  ptype,
BOOL prunearg,
LLScriptScope scope,
LSCRIPTType type,
LSCRIPTType  basetype,
U64 count,
LLScriptByteCodeChunk chunk,
LLScriptByteCodeChunk heap,
S32  stacksize,
LLScriptScopeEntry entry,
S32  entrycount,
LLScriptLibData **  ldata 
) [virtual]

Implements LLScriptFilePosition.

Reimplemented in LLScriptStatementSequence, LLScriptNOOP, LLScriptStateChange, LLScriptJump, LLScriptLabel, LLScriptReturn, LLScriptExpressionStatement, LLScriptIf, LLScriptIfElse, LLScriptFor, LLScriptDoWhile, LLScriptWhile, LLScriptDeclaration, and LLScriptCompoundStatement.

Definition at line 7341 of file lscript_tree.cpp.

Referenced by LLScriptGlobalFunctions::recurse(), LLScriptEventHandler::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), and LLScriptStatementSequence::recurse().


Member Data Documentation

BOOL LLScriptStatement::mAllowDeclarations

Definition at line 1812 of file lscript_tree.h.

Referenced by LLScriptDeclaration::recurse().

LLScriptStatement* LLScriptStatement::mNextp

Definition at line 1810 of file lscript_tree.h.

Referenced by addStatement(), and gonext().

LLScriptScope* LLScriptStatement::mStatementScope

Definition at line 1811 of file lscript_tree.h.

Referenced by LLScriptCompoundStatement::recurse(), and ~LLScriptStatement().

LSCRIPTStatementType LLScriptStatement::mType

Reimplemented in LLScriptReturn, LLScriptIf, LLScriptIfElse, LLScriptFor, LLScriptDoWhile, LLScriptWhile, and LLScriptDeclaration.

Definition at line 1809 of file lscript_tree.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:44 2010 for Second Life Viewer by  doxygen 1.4.7