BaseInstructionWriter Class |
Provides the base operations for emitting IL instructions. This abstract class
does not specify to which kind of target instructions are written. This is specific
to classes deriving BaseInstructionWriter.
System.Object
PostSharp.Sdk.CodeModel.BaseInstructionWriter
PostSharp.Sdk.CodeModel.InstructionWriter
PostSharp.Sdk.CodeModel.BaseInstructionWriter
PostSharp.Sdk.CodeModel.InstructionWriter
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
C#
public abstract class BaseInstructionWriter
The BaseInstructionWriter type exposes the following members.
Name | Description | |
---|---|---|
MethodBody |
Gets or sets the method body assigned to the current BaseInstructionWriter.
|
Name | Description | |
---|---|---|
EmitBranchingInstruction |
Emits a branching instruction.
| |
EmitInstruction |
Emits an instruction without operand.
| |
EmitInstructionByte |
Emits an instruction with a Byte operand.
| |
EmitInstructionDouble |
Emits an instruction with a Double operand.
| |
EmitInstructionField |
Emits an instruction with an IField operand.
| |
EmitInstructionInt16 |
Emits an instruction with an Int16 operand.
| |
EmitInstructionInt32 |
Emits an instruction with an Int32 operand.
| |
EmitInstructionInt64 |
Emits an instruction with an Int64 operand.
| |
EmitInstructionLoadIndirect |
Emits the proper "load indirect" instruction as a function of the operand type.
| |
EmitInstructionLocalVariable |
Emits an instruction with a LocalVariableSymbol operand.
| |
EmitInstructionMethod |
Emits an instruction with an IMethod operand.
| |
EmitInstructionParameter |
Emits an instruction with a ParameterDeclaration operand.
| |
EmitInstructionSignature |
Emits an instruction with a StandaloneSignatureDeclaration operand.
| |
EmitInstructionSingle |
Emits an instruction with a Single operand.
| |
EmitInstructionStoreElement |
Emits the proper instruction that stores an array element for a given ITypeSignature.
| |
EmitInstructionStoreIndirect |
Emits the proper "store indirect" instruction as a function of the operand type.
| |
EmitInstructionString |
Emits an instruction with a string operand.
| |
EmitInstructionType |
Emits an instruction with an IType operand.
| |
EmitPrefix |
Emits a prefix without operand.
| |
EmitPrefixType |
Emits a prefix with an IType operand.
| |
EmitSwitchInstruction |
Emits a Switch instruction.
| |
EmitSymbolAsyncResumePoint |
Emits a symbol to represent a resume point in the async method.
| |
EmitSymbolAsyncYieldPoint |
Emits a symbol to represent a yield point in the async method.
| |
EmitSymbolSequencePoint |
Emits a symbol sequence point.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindBranchingOpCode |
Given an arbitrary branching opcode, looks up the corresponding near and
far opcodes.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
EmitAssemblyOf | (Defined by InstructionWriterExtensions.) | |
EmitTypeOf | (Defined by InstructionWriterExtensions.) | |
EmitWriteLine |
Emits instructions that write a line using WriteLine(String).
(Defined by InstructionWriterExtensions.) |