LLScriptDeclaration Class Reference

#include <lscript_tree.h>

Inheritance diagram for LLScriptDeclaration:

Inheritance graph
[legend]
Collaboration diagram for LLScriptDeclaration:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScriptDeclaration (S32 line, S32 col, LLScriptType *type, LLScriptIdentifier *identifier, LLScriptExpression *expression)
 ~LLScriptDeclaration ()
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)
S32 getSize ()

Public Attributes

LLScriptTypemType
LLScriptIdentifiermIdentifier
LLScriptExpressionmExpression

Detailed Description

Definition at line 2043 of file lscript_tree.h.


Constructor & Destructor Documentation

LLScriptDeclaration::LLScriptDeclaration ( S32  line,
S32  col,
LLScriptType type,
LLScriptIdentifier identifier,
LLScriptExpression expression 
) [inline]

Definition at line 2046 of file lscript_tree.h.

LLScriptDeclaration::~LLScriptDeclaration (  )  [inline]

Definition at line 2051 of file lscript_tree.h.


Member Function Documentation

S32 LLScriptDeclaration::getSize (  )  [virtual]

Reimplemented from LLScriptStatement.

Definition at line 8384 of file lscript_tree.cpp.

References LLScriptType::getSize(), and mType.

void LLScriptDeclaration::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]

Reimplemented from LLScriptStatement.

Definition at line 8389 of file lscript_tree.cpp.

References LLScriptByteCodeChunk::addByte(), LLScriptByteCodeChunk::addBytes(), LLScriptScope::addEntry(), LLScriptByteCodeChunk::addFloat(), LLScriptByteCodeChunk::addInteger(), LLScriptArgString::addType(), cast2stack(), LLScriptScope::checkEntry(), FALSE, LLScriptFilePosition::fdotabs(), gErrorToText, LLScriptGenerateErrorText::getErrors(), LLScriptArgString::getNumber(), LLScriptType::getSize(), LLScriptStatement::gonext(), is_parameter(), legal_assignment(), LIT_GLOBAL, LIT_VARIABLE, LOPC_LOADLP, LOPC_LOADP, LOPC_LOADQP, LOPC_LOADSP, LOPC_LOADVP, LOPC_PUSHARGI, LOPC_PUSHARGQ, LOPC_PUSHARGS, LOPC_PUSHARGV, LOPC_STACKTOL, LSCP_EMIT_ASSEMBLY, LSCP_EMIT_BYTE_CODE, LSCP_EMIT_CIL_ASSEMBLY, LSCP_PRETTY_PRINT, LSCP_PRUNE, LSCP_RESOURCE, LSCP_SCOPE_PASS1, LSCP_TO_STACK, LSCP_TYPE, LSCRIPTOpCodes, LSCRIPTTypeLocalDeclaration, LSERROR_DUPLICATE_NAME, LSERROR_NEED_NEW_SCOPE, LSERROR_TYPE_MISMATCH, LSERROR_UNDEFINED_NAME, LSPRUNE_DEAD_CODE, LST_FLOATINGPOINT, LST_INTEGER, LST_KEY, LST_LIST, LST_QUATERNION, LST_STRING, LST_VECTOR, LLScriptStatement::mAllowDeclarations, LLScriptScopeEntry::mCount, mExpression, mIdentifier, LLScriptScopeEntry::mIDType, LLScriptScopeEntry::mLocals, LLScriptIdentifier::mName, LLScriptScopeEntry::mOffset, LLScriptIdentifier::mScopeEntry, LLScriptScopeEntry::mSize, LLScriptType::mType, LLScriptScopeEntry::mType, mType, NULL, LLScriptIdentifier::recurse(), LLScriptType::recurse(), S32, TRUE, and LLScriptGenerateErrorText::writeError().


Member Data Documentation

LLScriptExpression* LLScriptDeclaration::mExpression

Definition at line 2060 of file lscript_tree.h.

Referenced by recurse().

LLScriptIdentifier* LLScriptDeclaration::mIdentifier

Definition at line 2059 of file lscript_tree.h.

Referenced by recurse().

LLScriptType* LLScriptDeclaration::mType

Reimplemented from LLScriptStatement.

Definition at line 2058 of file lscript_tree.h.

Referenced by getSize(), and recurse().


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