10 references to VirtualMethodPointerStubGenerator
Microsoft.Interop.ComInterfaceGenerator (10)
ComInterfaceGenerator.cs (3)
402
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(
665
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(
682
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(
ComMethodContext.cs (2)
92
var (methodStub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(sourceAvailableContext, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
112
var (methodStub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(sourceAvailableContext, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
60
Argument(CastExpression(TypeSyntaxes.System_IntPtr, IdentifierName(
VirtualMethodPointerStubGenerator
.NativeThisParameterIdentifier))));
VtableIndexStubGenerator.cs (4)
288
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty);
368
var (stub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(methodStub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
381
var (stub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(methodStub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
449
populateVtableMethod.WithBody(
VirtualMethodPointerStubGenerator
.GenerateVirtualMethodTableSlotAssignments(vtableMethods, vtableParameter, VtableIndexStubGeneratorHelpers.GetGeneratorResolver)));