InterceptionAdviceArgsBuilder.EmitStoreAdviceArgsToLocal Method (AspectWeaverInstance, InstructionWriter, ArgumentsWriter, MethodMappingWriter, MethodMapping, Boolean, Boolean, MetadataDeclaration, MetadataDeclaration, IType, ILocalStorage, LocalVariableSymbol, IMethod, IField, IField) |
Namespace: PostSharp.Sdk.AspectWeaver
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public void EmitStoreAdviceArgsToLocal( AspectWeaverInstance aspectWeaverInstance, InstructionWriter instructionWriter, ArgumentsWriter argumentsWriter, MethodMappingWriter methodMappingWriter, MethodMapping bindingMethodMapping, bool requiresReflectionObject, bool requiresDeclarationIdentifier, MetadataDeclaration targetMember, MetadataDeclaration originalTargetMember, IType targetType, ref ILocalStorage adviseArgsVariable, LocalVariableSymbol oldBindingVariable, IMethod adviceArgsConstructor, IField adviceArgsBindingField, IField singletonBindingField )
Parameters
- aspectWeaverInstance
- Type: PostSharp.Sdk.AspectWeaver.AspectWeaverInstance
The AspectWeaverInstance for which the AdviceArgs is created. - instructionWriter
- Type: PostSharp.Sdk.CodeModel.InstructionWriter
An InstructionWriter. - argumentsWriter
- Type: PostSharp.Sdk.AspectWeaver.Transformations.ArgumentsWriter
An ArgumentsWriter. - methodMappingWriter
- Type: PostSharp.Sdk.AspectInfrastructure.MethodMappingWriter
The MethodMappingWriter for the current context. - bindingMethodMapping
- Type: PostSharp.Sdk.AspectInfrastructure.MethodMapping
Optionally, the MethodMapping for the next context, so that the relevant context items can be added to this context. - requiresReflectionObject
- Type: System.Boolean
true if the property containing the reflection object should be set, otherwise false. - requiresDeclarationIdentifier
- Type: System.Boolean
- targetMember
- Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
Declaration on which the advice is applied. - originalTargetMember
- Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
- targetType
- Type: PostSharp.Sdk.CodeModel.IType
Relevant generic instance of the declaring type of targetMember. - adviseArgsVariable
- Type: PostSharp.Sdk.AspectInfrastructure.ILocalStorage
Local variable where the AdviceArgs should be stored. If the input value of this parameter is null, the local variable is created. - oldBindingVariable
- Type: PostSharp.Sdk.CodeModel.LocalVariableSymbol
Variable into which the previous binding should be stored in case the AdviceArgs is reused. - adviceArgsConstructor
- Type: PostSharp.Sdk.CodeModel.IMethod
Constructor of the AdviceArgs class. - adviceArgsBindingField
- Type: PostSharp.Sdk.CodeModel.IField
Field of AdviceArgs containing the binding. - singletonBindingField
- Type: PostSharp.Sdk.CodeModel.IField
Static field containing the singleton binding to be assigned to adviseArgsVariable.