16 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (16)
ComInterfaceAndMethodsContext.cs (1)
35
: 1 + Methods.Max(m => m.
GenerationContext
.VtableIndexData.Index);
ComInterfaceGenerator.cs (10)
500
if (a.
GenerationContext
.SignatureContext.ManagedParameters.SequenceEqual(b.
GenerationContext
.SignatureContext.ManagedParameters))
523
inheritedMethod.
GenerationContext
,
526
writer.WriteLine($"public unsafe {functionPointerType} {inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.
GenerationContext
.VtableIndexData.Index};");
535
declaredMethod.
GenerationContext
,
538
writer.WriteLine($"public unsafe {functionPointerType} {declaredMethod.MethodInfo.MethodName}_{declaredMethod.
GenerationContext
.VtableIndexData.Index};");
624
writer.WriteLine($"Vtable.{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.
GenerationContext
.VtableIndexData.Index} = &{((SourceAvailableIncrementalMethodStubGenerationContext)declaredMethodContext.
GenerationContext
).AbiMethodIdentifier};");
718
IncrementalMethodStubGenerationContext genCtx = inheritedStub.
GenerationContext
;
768
IncrementalMethodStubGenerationContext generationContext = shadow.
GenerationContext
;
ComMethodContext.cs (5)
78
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional)
84
if (
GenerationContext
is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext)
98
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional)
102
return new SkippedStubContext(
GenerationContext
.OriginalDefiningType);
104
if (
GenerationContext
is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext)