23 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (23)
ComInterfaceGenerator.cs (8)
511if (a.GenerationContext.SignatureContext.ManagedParameters.SequenceEqual(b.GenerationContext.SignatureContext.ManagedParameters)) 624inheritedMethod.GenerationContext, 631.AddVariables(VariableDeclarator($"{inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.GenerationContext.VtableIndexData.Index}"))) 641declaredMethod.GenerationContext, 648.AddVariables(VariableDeclarator($"{declaredMethod.MethodInfo.MethodName}_{declaredMethod.GenerationContext.VtableIndexData.Index}"))) 787IdentifierName($"{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.GenerationContext.VtableIndexData.Index}")), 790IdentifierName($"ABI_{declaredMethodContext.GenerationContext.StubMethodSyntaxTemplate.Identifier}")))));
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))))))