18 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (18)
ComInterfaceGenerator.cs (3)
472
if (a.
GenerationContext
.SignatureContext.ManagedParameters.SequenceEqual(b.
GenerationContext
.SignatureContext.ManagedParameters))
614
.Select(context => context.
GenerationContext
),
ComMethodContext.cs (15)
80
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional) || IsHiddenOnDerivedInterface)
84
var (methodStub, diagnostics) = VirtualMethodPointerStubGenerator.GenerateManagedToNativeStub(
GenerationContext
, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
85
return new GeneratedStubCodeContext(
GenerationContext
.TypeKeyOwner,
GenerationContext
.ContainingSyntaxContext, new(methodStub), new(diagnostics));
94
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional) || IsHiddenOnDerivedInterface)
96
return new SkippedStubContext(
GenerationContext
.OriginalDefiningType);
98
var (methodStub, diagnostics) = VirtualMethodPointerStubGenerator.GenerateNativeToManagedStub(
GenerationContext
, ComInterfaceGeneratorHelpers.GetGeneratorResolver);
99
return new GeneratedStubCodeContext(
GenerationContext
.OriginalDefiningType,
GenerationContext
.ContainingSyntaxContext, new(methodStub), new(diagnostics));
110
.WithReturnType(
GenerationContext
.SignatureContext.StubReturnType)
115
.WithParameterList(ParameterList(SeparatedList(
GenerationContext
.SignatureContext.StubParameters)))
131
return MethodDeclaration(
GenerationContext
.SignatureContext.StubReturnType, MethodInfo.MethodName)
133
.WithAttributeLists(List(
GenerationContext
.SignatureContext.AdditionalAttributes.Concat(MethodInfo.Attributes.Select(a => a.GenerateAttributeList()))))
134
.WithParameterList(ParameterList(SeparatedList(
GenerationContext
.SignatureContext.StubParameters)))
144
SeparatedList(
GenerationContext
.SignatureContext.ManagedParameters.Select(GenerateArgument))))))