Public Member Functions | Public Attributes | Friends

js::Parser Struct Reference

#include <jsparse.h>

Inheritance diagram for js::Parser:
Collaboration diagram for js::Parser:

List of all members.

Public Member Functions

 Parser (JSContext *cx, JSPrincipals *prin=NULL, JSStackFrame *cfp=NULL)
 ~Parser ()
bool init (const jschar *base, size_t length, const char *filename, uintN lineno)
void setPrincipals (JSPrincipals *prin)
const char * getFilename ()
JSParseNodeparse (JSObject *chain)
JSObjectBoxnewObjectBox (JSObject *obj)
JSFunctionBoxnewFunctionBox (JSObject *obj, JSParseNode *fn, JSTreeContext *tc)
JSFunctionnewFunction (JSTreeContext *tc, JSAtom *atom, uintN lambda)
bool analyzeFunctions (JSTreeContext *tc)
void cleanFunctionList (JSFunctionBox **funbox)
bool markFunArgs (JSFunctionBox *funbox)
void setFunctionKinds (JSFunctionBox *funbox, uint32 *tcflags)
void trace (JSTracer *trc)
bool reportErrorNumber (JSParseNode *pn, uintN flags, uintN errorNumber,...)

Public Attributes

JSContext *const context
JSAtomListElementaleFreeList
void * tempFreeList [6U]
js::TokenStream tokenStream
void * tempPoolMark
JSPrincipalsprincipals
JSStackFrame *const callerFrame
JSObject *const callerVarObj
JSParseNodenodeList
uint32 functionCount
JSObjectBoxtraceListHead
JSTreeContexttc
JSVersion version
js::AutoKeepAtoms keepAtoms

Friends

struct ::JSTreeContext
struct Compiler
void js::AutoGCRooter::trace (JSTracer *trc)

Constructor & Destructor Documentation

js::Parser::Parser ( JSContext cx,
JSPrincipals prin = NULL,
JSStackFrame cfp = NULL 
)
js::Parser::~Parser (  ) 

Member Function Documentation

bool js::Parser::analyzeFunctions ( JSTreeContext tc  ) 
void js::Parser::cleanFunctionList ( JSFunctionBox **  funbox  ) 
const char* js::Parser::getFilename (  )  [inline]
bool js::Parser::init ( const jschar base,
size_t  length,
const char *  filename,
uintN  lineno 
)
bool js::Parser::markFunArgs ( JSFunctionBox funbox  ) 
JSFunction* js::Parser::newFunction ( JSTreeContext tc,
JSAtom atom,
uintN  lambda 
)
JSFunctionBox* js::Parser::newFunctionBox ( JSObject obj,
JSParseNode fn,
JSTreeContext tc 
)
JSObjectBox* js::Parser::newObjectBox ( JSObject obj  ) 
JSParseNode* js::Parser::parse ( JSObject chain  ) 
bool js::Parser::reportErrorNumber ( JSParseNode pn,
uintN  flags,
uintN  errorNumber,
  ... 
) [inline]
void js::Parser::setFunctionKinds ( JSFunctionBox funbox,
uint32 tcflags 
)
void js::Parser::setPrincipals ( JSPrincipals prin  ) 
void js::Parser::trace ( JSTracer trc  ) 

Reimplemented from js::AutoGCRooter.


Friends And Related Function Documentation

friend struct ::JSTreeContext [friend]
friend struct Compiler [friend]
void js::AutoGCRooter::trace ( JSTracer trc  )  [friend]

Member Data Documentation

Reimplemented from js::AutoGCRooter.


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