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

Represents the unit of compilation.
Показать файл Открыть проект

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

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