|
Pol
Rev 533
|
#include <symcont.h>
Inheritance diagram for StoredTokenContainer:
Collaboration diagram for StoredTokenContainer:Public Member Functions | |
| StoredTokenContainer (int growBy=512) | |
| void | append_tok (const StoredToken &token, unsigned *position=NULL) |
| void | atGet1 (unsigned position, StoredToken &token) const |
| void | atPut1 (const StoredToken &token, unsigned position) |
| unsigned | count (void) const |
| virtual void * | detach (void) |
| unsigned | next (void) |
| virtual void | pack (void) |
| virtual void | read (FILE *fp) |
| virtual void | resize (unsigned lengthToAdd) |
| void | setcount (unsigned newCount) |
Public Attributes | |
| StoredToken * | ST |
| StoredTokenContainer::StoredTokenContainer | ( | int | growBy = 512 | ) | [inline, explicit] |
| void StoredTokenContainer::append_tok | ( | const StoredToken & | token, |
| unsigned * | position = NULL |
||
| ) |
Definition at line 164 of file symcont.cpp.
References atPut1(), resize(), and SymbolContainer::usedLen.
Referenced by EScriptProgram::addToken(), and EScriptProgram::append().
Here is the call graph for this function:
Here is the caller graph for this function:| void StoredTokenContainer::atGet1 | ( | unsigned | position, |
| StoredToken & | token | ||
| ) | const |
Definition at line 183 of file symcont.cpp.
References count(), decint(), and SymbolContainer::s.
Referenced by Compiler::_getStatement(), EScriptProgram::_readToken(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleFunction(), and Compiler::patchoffset().
Here is the call graph for this function:
Here is the caller graph for this function:| void StoredTokenContainer::atPut1 | ( | const StoredToken & | token, |
| unsigned | position | ||
| ) |
Definition at line 173 of file symcont.cpp.
References count(), decint(), and SymbolContainer::s.
Referenced by append_tok(), Compiler::handleBracketedFunction(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleFunction(), Compiler::handleIf(), and Compiler::patchoffset().
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned StoredTokenContainer::count | ( | void | ) | const [inline] |
Definition at line 93 of file symcont.h.
References SymbolContainer::usedLen.
Referenced by Compiler::_getStatement(), EScriptProgram::add_ins_dbg_info(), atGet1(), atPut1(), EScriptProgramCheckpoint::commit(), Compiler::emitFileLine(), Compiler::emitFileLineIfFileChanged(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleFunction(), Compiler::handleProgram2(), EScriptProgram::read_dbg_file(), Compiler::savesourceline(), and EScriptProgram::write_dbg().
Here is the caller graph for this function:| void * StoredTokenContainer::detach | ( | void | ) | [virtual] |
| unsigned StoredTokenContainer::next | ( | void | ) | [inline] |
Definition at line 97 of file symcont.h.
References SymbolContainer::length().
Referenced by Compiler::handleBracketedFor_basic(), Compiler::handleBracketedFor_c(), Compiler::handleBracketedFunction(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleDoClause(), Compiler::handleFor_c(), Compiler::handleForEach(), Compiler::handleFunction(), Compiler::handleIf(), Compiler::handleRepeatUntil(), and Compiler::handleSwitch().
Here is the call graph for this function:
Here is the caller graph for this function:| void StoredTokenContainer::pack | ( | void | ) | [virtual] |
Reimplemented from SymbolContainer.
Definition at line 194 of file symcont.cpp.
References SymbolContainer::s, and ST.
| void StoredTokenContainer::read | ( | FILE * | fp | ) | [virtual] |
Reimplemented from SymbolContainer.
Definition at line 150 of file symcont.cpp.
References SymbolContainer::s, and ST.
Referenced by EScriptProgram::read().
Here is the caller graph for this function:| void StoredTokenContainer::resize | ( | unsigned | lengthToAdd | ) | [virtual] |
Reimplemented from SymbolContainer.
Definition at line 207 of file symcont.cpp.
References SymbolContainer::s, and ST.
Referenced by append_tok().
Here is the caller graph for this function:| void StoredTokenContainer::setcount | ( | unsigned | newCount | ) | [inline] |
Definition at line 92 of file symcont.h.
References SymbolContainer::usedLen.
Referenced by Compiler::rollback().
Here is the caller graph for this function: