C# 클래스 Jurassic.Compiler.GlobalMethodGenerator

Represents the information needed to compile global code.
상속: MethodGenerator
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

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

보호된 메소드들

메소드 설명
GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates IL for the script.

GetMethodName ( ) : string

Gets a name for the generated method.

메소드 상세

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

GlobalMethodGenerator() 공개 메소드

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.
리턴 System

Parse() 공개 메소드

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