LLScriptGlobalFunctions Class Reference

#include <lscript_tree.h>

Inheritance diagram for LLScriptGlobalFunctions:

Inheritance graph
[legend]
Collaboration diagram for LLScriptGlobalFunctions:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScriptGlobalFunctions (S32 line, S32 col, LLScriptType *type, LLScriptIdentifier *identifier, LLScriptFunctionDec *parameters, LLScriptStatement *statements)
void addGlobalFunction (LLScriptGlobalFunctions *global)
 ~LLScriptGlobalFunctions ()
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)
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
LLScriptFunctionDecmParameters
LLScriptStatementmStatements
LLScriptGlobalFunctionsmNextp
LLScriptScopemFunctionScope
BOOL mbNeedTrailingReturn

Detailed Description

Definition at line 2139 of file lscript_tree.h.


Constructor & Destructor Documentation

LLScriptGlobalFunctions::LLScriptGlobalFunctions ( S32  line,
S32  col,
LLScriptType type,
LLScriptIdentifier identifier,
LLScriptFunctionDec parameters,
LLScriptStatement statements 
) [inline]

Definition at line 2142 of file lscript_tree.h.

LLScriptGlobalFunctions::~LLScriptGlobalFunctions (  )  [inline]

Definition at line 2152 of file lscript_tree.h.

References mFunctionScope.


Member Function Documentation

void LLScriptGlobalFunctions::addGlobalFunction ( LLScriptGlobalFunctions global  ) 

Definition at line 9188 of file lscript_tree.cpp.

References mNextp.

S32 LLScriptGlobalFunctions::getSize (  )  [virtual]

Implements LLScriptFilePosition.

Definition at line 9220 of file lscript_tree.cpp.

void LLScriptGlobalFunctions::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 9197 of file lscript_tree.cpp.

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

Referenced by recurse().

void LLScriptGlobalFunctions::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.

Definition at line 9225 of file lscript_tree.cpp.

References add_return(), LLScriptByteCodeChunk::addBytes(), LLScriptScope::addEntry(), LLScriptScope::addParentScope(), LLScriptScope::checkEntry(), LLScriptByteCodeChunk::connectJumps(), FALSE, LLScriptFilePosition::fdotabs(), gErrorToText, LLScriptGenerateErrorText::getErrors(), gonext(), gScopeStringTable, integer2bytestream(), LIT_FUNCTION, LSCP_BUILD_FUNCTION_ARGS, LSCP_EMIT_ASSEMBLY, LSCP_EMIT_BYTE_CODE, LSCP_EMIT_CIL_ASSEMBLY, LSCP_PRETTY_PRINT, LSCP_PRUNE, LSCP_RESOURCE, LSCP_SCOPE_PASS1, LSCP_SCOPE_PASS2, LSCP_TYPE, LSCRIPTDataSize, LSCRIPTTypeByte, LSERROR_DUPLICATE_NAME, LSERROR_NO_RETURN, LSPRUNE_GLOBAL_NON_VOIDS, LSPRUNE_GLOBAL_VOIDS, LST_INTEGER, LST_NULL, mbNeedTrailingReturn, LLScriptByteCodeChunk::mCodeChunk, LLScriptScopeEntry::mCount, LLScriptByteCodeChunk::mCurrentOffset, LLScriptScopeEntry::mFunctionArgs, mFunctionScope, mIdentifier, LLScriptScopeEntry::mLocals, LLScriptIdentifier::mName, LLScriptScopeEntry::mOffset, mParameters, LLScriptIdentifier::mScopeEntry, LLScriptScopeEntry::mSize, mStatements, LLScriptArgString::mString, LLScriptType::mType, mType, NULL, params, print_cil_local_init(), print_cil_type(), print_return(), LLScriptStatement::recurse(), LLScriptFunctionDec::recurse(), LLScriptIdentifier::recurse(), LLScriptType::recurse(), S32, TRUE, and LLScriptGenerateErrorText::writeError().

Referenced by LLScriptScript::recurse().


Member Data Documentation

BOOL LLScriptGlobalFunctions::mbNeedTrailingReturn

Definition at line 2168 of file lscript_tree.h.

Referenced by recurse().

LLScriptScope* LLScriptGlobalFunctions::mFunctionScope

Definition at line 2167 of file lscript_tree.h.

Referenced by recurse(), and ~LLScriptGlobalFunctions().

LLScriptIdentifier* LLScriptGlobalFunctions::mIdentifier

Definition at line 2163 of file lscript_tree.h.

Referenced by recurse().

LLScriptGlobalFunctions* LLScriptGlobalFunctions::mNextp

Definition at line 2166 of file lscript_tree.h.

Referenced by addGlobalFunction(), gonext(), and LLScriptScript::LLScriptScript().

LLScriptFunctionDec* LLScriptGlobalFunctions::mParameters

Definition at line 2164 of file lscript_tree.h.

Referenced by recurse().

LLScriptStatement* LLScriptGlobalFunctions::mStatements

Definition at line 2165 of file lscript_tree.h.

Referenced by recurse().

LLScriptType* LLScriptGlobalFunctions::mType

Definition at line 2162 of file lscript_tree.h.

Referenced by recurse().


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