14 references to VirtualMethodPointerStubGenerator
Microsoft.Interop.ComInterfaceGenerator (14)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (2)
188
(_, managedToNativeDiags) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(srcCtx, static (env, dir) => new ByValueContentsMarshalKindValidator(ComInterfaceGeneratorHelpers.GetGeneratorResolver(env, dir)));
192
(_, nativeToManagedDiags) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(srcCtx, static (env, dir) => new ByValueContentsMarshalKindValidator(ComInterfaceGeneratorHelpers.GetGeneratorResolver(env, dir)));
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (2)
94
var (_, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(stubContext, static (env, dir) => new ByValueContentsMarshalKindValidator(VtableIndexStubGeneratorHelpers.GetGeneratorResolver(env, dir)));
101
var (_, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(stubContext, static (env, dir) => new ByValueContentsMarshalKindValidator(VtableIndexStubGeneratorHelpers.GetGeneratorResolver(env, dir)));
ComInterfaceGenerator.cs (3)
312
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(
482
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(
494
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(
ComMethodContext.cs (2)
88
var (methodStub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(sourceAvailableContext, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
108
var (methodStub, diagnostics) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(sourceAvailableContext, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
60
Argument(CastExpression(TypeSyntaxes.System_IntPtr, IdentifierName(
VirtualMethodPointerStubGenerator
.NativeThisParameterIdentifier))));
VtableIndexStubGenerator.cs (4)
67
var (stubSyntax, _) =
VirtualMethodPointerStubGenerator
.GenerateManagedToNativeStub(stub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
103
var (stubSyntax, _) =
VirtualMethodPointerStubGenerator
.GenerateNativeToManagedStub(stub, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
175
FunctionPointerTypeSyntax functionPointerType =
VirtualMethodPointerStubGenerator
.GenerateUnmanagedFunctionPointerTypeForMethod(method, VtableIndexStubGeneratorHelpers.GetGeneratorResolver);
349
ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax> callConv =
VirtualMethodPointerStubGenerator
.GenerateCallConvSyntaxFromAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultCallingConventions: ImmutableArray<FunctionPointerUnmanagedCallingConventionSyntax>.Empty);