C# Class Jurassic.Compiler.GlobalMethodGenerator

Represents the information needed to compile global code.
Inheritance: MethodGenerator
Show file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

Method Description
Execute ( ) : object

Executes the script.

GlobalMethodGenerator ( ScriptEngine engine, ScriptSource source, Jurassic.Compiler.CompilerOptions options ) : System

Creates a new GlobalMethodGenerator instance.

Parse ( ) : void

Parses the source text into an abstract syntax tree.

Protected Methods

Method Description
GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates IL for the script.

GetMethodName ( ) : string

Gets a name for the generated method.

Method Details

Execute() public method

Executes the script.
public Execute ( ) : object
return object

GenerateCode() protected method

Generates IL for the script.
protected GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
return void

GetMethodName() protected method

Gets a name for the generated method.
protected GetMethodName ( ) : string
return string

GlobalMethodGenerator() public method

Creates a new GlobalMethodGenerator instance.
public GlobalMethodGenerator ( ScriptEngine engine, ScriptSource source, Jurassic.Compiler.CompilerOptions options ) : System
engine ScriptEngine The script engine.
source ScriptSource The source of javascript code.
options Jurassic.Compiler.CompilerOptions Options that influence the compiler.
return System

Parse() public method

Parses the source text into an abstract syntax tree.
public Parse ( ) : void
return void