14 references to VirtualMethodPointerStubGenerator
Microsoft.Interop.ComInterfaceGenerator (14)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (2)
188
(_, managedToNativeDiags) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(srcCtx, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
192
(_, nativeToManagedDiags) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(srcCtx, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (2)
94
var (_, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(stubContext, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
101
var (_, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(stubContext, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
ComInterfaceGenerator.cs (3)
381
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(
644
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(
661
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)
273
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty);
353
var (stub, _) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(methodStub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
364
var (stub, _) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(methodStub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
394
populateVtableMethod.WithBody(
VirtualMethodPointerStubGenerator
.GenerateVirtualMethodTableSlotAssignments(vtableMethods, vtableParameter, VtableIndexStubGeneratorHelpers.GetGeneratorResolver)));