C# 클래스 Jurassic.Compiler.MethodGenerator

Represents the unit of compilation.
파일 보기 프로젝트 열기: paulbartrum/jurassic

공개 메소드들

메소드 설명
GenerateCode ( ) : void

Generates IL for the script.

Optimize ( ) : void

Optimizes the abstract syntax tree.

Parse ( ) : void

Parses the source text into an abstract syntax tree.

보호된 메소드들

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

Generates IL for the script.

GetDelegate ( ) : Type

Retrieves a delegate for the generated method.

GetMethodName ( ) : string

Gets a name for the generated method.

GetParameterTypes ( ) : System.Type[]

Gets an array of types - one for each parameter accepted by the method generated by this context.

GetStackName ( ) : string

Gets a name for the function, as it appears in the stack trace.

MethodGenerator ( ScriptEngine engine, Scope scope, ScriptSource source, Jurassic.Compiler.CompilerOptions options ) : System

Creates a new MethodGenerator instance.

메소드 상세

GenerateCode() 공개 메소드

Generates IL for the script.
public GenerateCode ( ) : void
리턴 void

GenerateCode() 보호된 추상적인 메소드

Generates IL for the script.
protected abstract 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

GetDelegate() 보호된 메소드

Retrieves a delegate for the generated method.
protected GetDelegate ( ) : Type
리턴 System.Type

GetMethodName() 보호된 추상적인 메소드

Gets a name for the generated method.
protected abstract GetMethodName ( ) : string
리턴 string

GetParameterTypes() 보호된 메소드

Gets an array of types - one for each parameter accepted by the method generated by this context.
protected GetParameterTypes ( ) : System.Type[]
리턴 System.Type[]

GetStackName() 보호된 메소드

Gets a name for the function, as it appears in the stack trace.
protected GetStackName ( ) : string
리턴 string

MethodGenerator() 보호된 메소드

Creates a new MethodGenerator instance.
protected MethodGenerator ( ScriptEngine engine, Scope scope, ScriptSource source, Jurassic.Compiler.CompilerOptions options ) : System
engine ScriptEngine The script engine.
scope Scope The initial scope.
source ScriptSource The source of javascript code.
options Jurassic.Compiler.CompilerOptions Options that influence the compiler.
리턴 System

Optimize() 공개 메소드

Optimizes the abstract syntax tree.
public Optimize ( ) : void
리턴 void

Parse() 공개 추상적인 메소드

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