C# Класс Jurassic.Compiler.EvalMethodGenerator

Represents the information needed to compile eval script into a method.
Наследование: MethodGenerator
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates IL for the script.

GetMethodName ( ) : string

Gets a name for the generated method.

Описание методов

EvalMethodGenerator() публичный Метод

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.
Результат System

Execute() публичный Метод

Executes the script.
public Execute ( ) : object
Результат object

GenerateCode() защищенный Метод

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.
Результат void

GetMethodName() защищенный Метод

Gets a name for the generated method.
protected GetMethodName ( ) : string
Результат string

Parse() публичный Метод

Parses the source text into an abstract syntax tree.
public Parse ( ) : void
Результат void