C# Class Jurassic.Compiler.EvalMethodGenerator

Represents the information needed to compile eval script into a method.
Inheritance: MethodGenerator
Afficher le fichier Open project: paulbartrum/jurassic

Méthodes publiques

Méthode Description
EvalMethodGenerator ( ScriptEngine engine, Scope parentScope, ScriptSource source, Jurassic.Compiler.CompilerOptions options, object thisObject ) : System

Creates a new EvalMethodGenerator instance.

Execute ( ) : object

Executes the script.

Parse ( ) : void

Parses the source text into an abstract syntax tree.

Méthodes protégées

Méthode Description
GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates IL for the script.

GetMethodName ( ) : string

Gets a name for the generated method.

Method Details

EvalMethodGenerator() public méthode

Creates a new EvalMethodGenerator instance.
public EvalMethodGenerator ( ScriptEngine engine, Scope parentScope, ScriptSource source, Jurassic.Compiler.CompilerOptions options, object thisObject ) : System
engine ScriptEngine The script engine.
parentScope Scope The scope of the calling code.
source ScriptSource The script code to execute.
options Jurassic.Compiler.CompilerOptions Options that influence the compiler.
thisObject object The value of the "this" keyword in the calling code.
Résultat System

Execute() public méthode

Executes the script.
public Execute ( ) : object
Résultat object

GenerateCode() protected méthode

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.
Résultat void

GetMethodName() protected méthode

Gets a name for the generated method.
protected GetMethodName ( ) : string
Résultat string

Parse() public méthode

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