17 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (17)
ComInterfaceAndMethodsContext.cs (1)
35
: 1 + Methods.Max(m => m.
GenerationContext
.VtableIndexData.Index);
ComInterfaceGenerator.cs (11)
463
if (a.
GenerationContext
.SignatureContext.ManagedParameters.SequenceEqual(b.
GenerationContext
.SignatureContext.ManagedParameters))
483
inheritedMethod.
GenerationContext
,
486
writer.WriteLine($"public {functionPointerType.NormalizeWhitespace()} {inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.
GenerationContext
.VtableIndexData.Index};");
495
declaredMethod.
GenerationContext
,
498
writer.WriteLine($"public {functionPointerType.NormalizeWhitespace()} {declaredMethod.MethodInfo.MethodName}_{declaredMethod.
GenerationContext
.VtableIndexData.Index};");
557
writer.WriteLine($"Vtable.{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.
GenerationContext
.VtableIndexData.Index} = &ABI_{((SourceAvailableIncrementalMethodStubGenerationContext)declaredMethodContext.
GenerationContext
).StubMethodSyntaxTemplate.Identifier};");
604
writer.Write($"{inheritedStub.
GenerationContext
.SignatureContext.StubReturnType} {inheritedStub.OriginalDeclaringInterface.Info.Type.FullTypeName}.{inheritedStub.MethodInfo.MethodName}");
605
writer.Write($"({string.Join(", ", inheritedStub.
GenerationContext
.SignatureContext.StubParameters.Select(p => p.NormalizeWhitespace().ToString()))})");
626
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)