Public Member Functions | Static Public Member Functions | Public Attributes

js::Compiler Struct Reference

#include <jsparse.h>

Collaboration diagram for js::Compiler:

List of all members.

Public Member Functions

 Compiler (JSContext *cx, JSPrincipals *prin=NULL, JSStackFrame *cfp=NULL)
bool init (const jschar *base, size_t length, const char *filename, uintN lineno)

Static Public Member Functions

static bool compileFunctionBody (JSContext *cx, JSFunction *fun, JSPrincipals *principals, js::Bindings *bindings, const jschar *chars, size_t length, const char *filename, uintN lineno)
static JSScriptcompileScript (JSContext *cx, JSObject *scopeChain, JSStackFrame *callerFrame, JSPrincipals *principals, uint32 tcflags, const jschar *chars, size_t length, const char *filename, uintN lineno, JSString *source=NULL, uintN staticLevel=0)

Public Attributes

Parser parser
GlobalScopeglobalScope

Constructor & Destructor Documentation

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

Member Function Documentation

static bool js::Compiler::compileFunctionBody ( JSContext cx,
JSFunction fun,
JSPrincipals principals,
js::Bindings bindings,
const jschar chars,
size_t  length,
const char *  filename,
uintN  lineno 
) [static]
static JSScript* js::Compiler::compileScript ( JSContext cx,
JSObject scopeChain,
JSStackFrame callerFrame,
JSPrincipals principals,
uint32  tcflags,
const jschar chars,
size_t  length,
const char *  filename,
uintN  lineno,
JSString source = NULL,
uintN  staticLevel = 0 
) [static]
bool js::Compiler::init ( const jschar base,
size_t  length,
const char *  filename,
uintN  lineno 
) [inline]

Member Data Documentation


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