C# 클래스 Jurassic.Compiler.EvalMethodGenerator

Represents the information needed to compile eval script into a method.
상속: MethodGenerator
파일 보기 프로젝트 열기: paulbartrum/jurassic

공개 메소드들

메소드 설명
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