20 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (20)
ComInterfaceAndMethodsContext.cs (1)
35
: 1 + Methods.Max(m => m.
GenerationContext
.VtableIndexData.Index);
ComInterfaceGenerator.cs (8)
553
if (a.
GenerationContext
.SignatureContext.ManagedParameters.SequenceEqual(b.
GenerationContext
.SignatureContext.ManagedParameters))
666
inheritedMethod.
GenerationContext
,
673
.AddVariables(VariableDeclarator($"{inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.
GenerationContext
.VtableIndexData.Index}")))
683
declaredMethod.
GenerationContext
,
690
.AddVariables(VariableDeclarator($"{declaredMethod.MethodInfo.MethodName}_{declaredMethod.
GenerationContext
.VtableIndexData.Index}")))
828
IdentifierName($"{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.
GenerationContext
.VtableIndexData.Index}")),
831
IdentifierName($"ABI_{((SourceAvailableIncrementalMethodStubGenerationContext)declaredMethodContext.
GenerationContext
).StubMethodSyntaxTemplate.Identifier}")))));
ComMethodContext.cs (11)
82
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional)
88
if (
GenerationContext
is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext)
102
if (
GenerationContext
.VtableIndexData.Direction is not (MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional)
106
return new SkippedStubContext(
GenerationContext
.OriginalDefiningType);
108
if (
GenerationContext
is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext)
124
.WithReturnType(
GenerationContext
.SignatureContext.StubReturnType)
129
.WithParameterList(ParameterList(SeparatedList(
GenerationContext
.SignatureContext.StubParameters)))
145
return MethodDeclaration(
GenerationContext
.SignatureContext.StubReturnType, MethodInfo.MethodName)
147
.WithAttributeLists(List(
GenerationContext
.SignatureContext.AdditionalAttributes.Concat(MethodInfo.Attributes.Select(a => a.GenerateAttributeList()))))
148
.WithParameterList(ParameterList(SeparatedList(
GenerationContext
.SignatureContext.StubParameters)))
158
SeparatedList(
GenerationContext
.SignatureContext.ManagedParameters.Select(GenerateArgument))))))