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