PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Base­Instruction­Writer Class

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.
Inheritance Hierarchy
System.Object
  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)
Syntax
C#
public abstract class BaseInstructionWriter

The BaseInstructionWriter type exposes the following members.

Properties
  NameDescription
Public propertyMethodBody
Gets or sets the method body assigned to the current BaseInstructionWriter.
Methods
  NameDescription
Public methodEmitBranchingInstruction
Emits a branching instruction.
Public methodEmitInstruction
Emits an instruction without operand.
Public methodEmitInstructionByte
Emits an instruction with a Byte operand.
Public methodEmitInstructionDouble
Emits an instruction with a Double operand.
Public methodEmitInstructionField
Emits an instruction with an IField operand.
Public methodEmitInstructionInt16
Emits an instruction with an Int16 operand.
Public methodEmitInstructionInt32
Emits an instruction with an Int32 operand.
Public methodEmitInstructionInt64
Emits an instruction with an Int64 operand.
Public methodEmitInstructionLoadIndirect
Emits the proper "load indirect" instruction as a function of the operand type.
Public methodEmitInstructionLocalVariable
Emits an instruction with a LocalVariableSymbol operand.
Public methodEmitInstructionMethod
Emits an instruction with an IMethod operand.
Public methodEmitInstructionParameter
Emits an instruction with a ParameterDeclaration operand.
Public methodEmitInstructionSignature
Emits an instruction with a StandaloneSignatureDeclaration operand.
Public methodEmitInstructionSingle
Emits an instruction with a Single operand.
Public methodEmitInstructionStoreElement
Emits the proper instruction that stores an array element for a given ITypeSignature.
Public methodEmitInstructionStoreIndirect
Emits the proper "store indirect" instruction as a function of the operand type.
Public methodEmitInstructionString
Emits an instruction with a string operand.
Public methodEmitInstructionType
Emits an instruction with an IType operand.
Public methodEmitPrefix
Emits a prefix without operand.
Public methodEmitPrefixType
Emits a prefix with an IType operand.
Public methodEmitSwitchInstruction
Emits a Switch instruction.
Public methodEmitSymbolAsyncResumePoint
Emits a symbol to represent a resume point in the async method.
Public methodEmitSymbolAsyncYieldPoint
Emits a symbol to represent a yield point in the async method.
Public methodEmitSymbolSequencePoint
Emits a symbol sequence point.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodStatic memberFindBranchingOpCode
Given an arbitrary branching opcode, looks up the corresponding near and far opcodes.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Extension Methods
  NameDescription
Public Extension MethodEmitAssemblyOf (Defined by InstructionWriterExtensions.)
Public Extension MethodEmitTypeOf (Defined by InstructionWriterExtensions.)
Public Extension MethodEmitWriteLine
Emits instructions that write a line using WriteLine(String).
(Defined by InstructionWriterExtensions.)
See Also