C# Класс TriAxis.RunSharp.CodeGen

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Complete void
EmitGetHelper void
EmitGetHelper_Conversion void
EmitGetHelper_Ref void
EnsureReturnVariable void
ICodeGenContext System.Reflection.Emit.ILGenerator
IDelayedCompletion void
IDelayedDefinition void
ISignatureGen IParameterBasicInfo
ISignatureGen System.Reflection.Emit.ParameterBuilder
LocalInitedFromStack ContextualOperand
LocalInitedFromStack ContextualOperand

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

Метод Описание
Arg ( int parameterIndex ) : ContextualOperand

ThisOffset is applied inside

Arg ( string name ) : ContextualOperand
Base ( ) : ContextualOperand
CodeGen ( ICodeGenContext context, bool isOwner = true ) : System
DefineLabel ( ) : Label
ForceResetUnreachableState ( ) : void
Goto ( Label label ) : void
Goto ( string labelName ) : void
Label ( string labelName ) : Label
Local ( ) : ContextualOperand
Local ( Operand init ) : ContextualOperand
Local ( System type ) : ContextualOperand
Local ( System type, Operand init ) : ContextualOperand
Local ( Type type ) : ContextualOperand
Local ( Type type, Operand init ) : ContextualOperand
MarkLabel ( Label label ) : void
PropertyValue ( ) : ContextualOperand
This ( ) : ContextualOperand
this ( string localName ) : Operand

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

Метод Описание
EmitCallHelper ( MethodBase mth, Operand target ) : void
EmitConvHelper ( TypeCode to ) : void
EmitGetHelper ( Operand op, Type desiredType, bool allowExplicitConversion ) : void
EmitI4Helper ( int value ) : void
EmitI8Helper ( long value, bool signed ) : void
EmitLdargHelper ( ushort index ) : void
EmitLdelemHelper ( Type elementType ) : void
EmitLdindHelper ( Type type ) : void
EmitStargHelper ( ushort index ) : void
EmitStelemHelper ( Type elementType, Operand element, bool allowExplicitConversion ) : void
EmitStindHelper ( Type type, Operand value, bool allowExplicitConversion ) : void
GetStelemOpCode ( Type elementType ) : OpCode
GetStindOpCode ( Type type ) : OpCode
WrapExistingLocal ( LocalBuilder local ) : ContextualOperand

Приватные методы

Метод Описание
Complete ( ) : void
EmitGetHelper ( Operand op, Type desiredType, Conversion conv, Type from = null ) : void
EmitGetHelper_Conversion ( Operand op, Type desiredType, Conversion conv, Type from = null ) : void
EmitGetHelper_Ref ( Operand op, Type desiredType ) : void
EnsureReturnVariable ( ) : void
ICodeGenContext ( ) : ILGenerator
IDelayedCompletion ( ) : void
IDelayedDefinition ( ) : void
ISignatureGen ( string parameterName ) : IParameterBasicInfo
ISignatureGen ( int position, ParameterAttributes attributes, string parameterName ) : ParameterBuilder
LocalInitedFromStack ( System type ) : ContextualOperand
LocalInitedFromStack ( Type type ) : ContextualOperand

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

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

ThisOffset is applied inside
public Arg ( int parameterIndex ) : ContextualOperand
parameterIndex int
Результат ContextualOperand

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

public Arg ( string name ) : ContextualOperand
name string
Результат ContextualOperand

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

public Base ( ) : ContextualOperand
Результат ContextualOperand

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

public CodeGen ( ICodeGenContext context, bool isOwner = true ) : System
context ICodeGenContext
isOwner bool
Результат System

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

public DefineLabel ( ) : Label
Результат System.Reflection.Emit.Label

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

protected EmitCallHelper ( MethodBase mth, Operand target ) : void
mth System.Reflection.MethodBase
target Operand
Результат void

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

protected EmitConvHelper ( TypeCode to ) : void
to TypeCode
Результат void

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

protected EmitGetHelper ( Operand op, Type desiredType, bool allowExplicitConversion ) : void
op Operand
desiredType IKVM.Reflection.Type
allowExplicitConversion bool
Результат void

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

protected EmitI4Helper ( int value ) : void
value int
Результат void

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

protected EmitI8Helper ( long value, bool signed ) : void
value long
signed bool
Результат void

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

protected EmitLdargHelper ( ushort index ) : void
index ushort
Результат void

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

protected EmitLdelemHelper ( Type elementType ) : void
elementType IKVM.Reflection.Type
Результат void

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

protected EmitLdindHelper ( Type type ) : void
type IKVM.Reflection.Type
Результат void

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

protected EmitStargHelper ( ushort index ) : void
index ushort
Результат void

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

protected EmitStelemHelper ( Type elementType, Operand element, bool allowExplicitConversion ) : void
elementType IKVM.Reflection.Type
element Operand
allowExplicitConversion bool
Результат void

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

protected EmitStindHelper ( Type type, Operand value, bool allowExplicitConversion ) : void
type IKVM.Reflection.Type
value Operand
allowExplicitConversion bool
Результат void

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

public ForceResetUnreachableState ( ) : void
Результат void

GetStelemOpCode() защищенный статический Метод

protected static GetStelemOpCode ( Type elementType ) : OpCode
elementType IKVM.Reflection.Type
Результат System.Reflection.Emit.OpCode

GetStindOpCode() защищенный статический Метод

protected static GetStindOpCode ( Type type ) : OpCode
type IKVM.Reflection.Type
Результат System.Reflection.Emit.OpCode

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

public Goto ( Label label ) : void
label System.Reflection.Emit.Label
Результат void

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

public Goto ( string labelName ) : void
labelName string
Результат void

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

public Label ( string labelName ) : Label
labelName string
Результат System.Reflection.Emit.Label

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

public Local ( ) : ContextualOperand
Результат ContextualOperand

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

public Local ( Operand init ) : ContextualOperand
init Operand
Результат ContextualOperand

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

public Local ( System type ) : ContextualOperand
type System
Результат ContextualOperand

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

public Local ( System type, Operand init ) : ContextualOperand
type System
init Operand
Результат ContextualOperand

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

public Local ( Type type ) : ContextualOperand
type IKVM.Reflection.Type
Результат ContextualOperand

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

public Local ( Type type, Operand init ) : ContextualOperand
type IKVM.Reflection.Type
init Operand
Результат ContextualOperand

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

public MarkLabel ( Label label ) : void
label System.Reflection.Emit.Label
Результат void

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

public PropertyValue ( ) : ContextualOperand
Результат ContextualOperand

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

public This ( ) : ContextualOperand
Результат ContextualOperand

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

protected WrapExistingLocal ( LocalBuilder local ) : ContextualOperand
local System.Reflection.Emit.LocalBuilder
Результат ContextualOperand

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

public this ( string localName ) : Operand
localName string
Результат Operand