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