19 references to GenerationContext
Microsoft.Interop.ComInterfaceGenerator (19)
ComInterfaceAndMethodsContext.cs (1)
35: 1 + Methods.Max(m => m.GenerationContext.VtableIndexData.Index);
ComInterfaceGenerator.cs (13)
528if (a.GenerationContext.SignatureContext.ManagedParameters.SequenceEqual(b.GenerationContext.SignatureContext.ManagedParameters)) 548inheritedMethod.GenerationContext, 551writer.WriteLine($"public {functionPointerType.NormalizeWhitespace()} {inheritedMethod.MethodInfo.MethodName}_{inheritedMethod.GenerationContext.VtableIndexData.Index};"); 560declaredMethod.GenerationContext, 563writer.WriteLine($"public {functionPointerType.NormalizeWhitespace()} {declaredMethod.MethodInfo.MethodName}_{declaredMethod.GenerationContext.VtableIndexData.Index};"); 622writer.WriteLine($"Vtable.{declaredMethodContext.MethodInfo.MethodName}_{declaredMethodContext.GenerationContext.VtableIndexData.Index} = &ABI_{((SourceAvailableIncrementalMethodStubGenerationContext)declaredMethodContext.GenerationContext).StubMethodSyntaxTemplate.Identifier};"); 686if (inheritedStub.GenerationContext is { MemberKind: var kind } && kind.IsPropertyOrIndexerAccessor()) 698writer.Write($"{inheritedStub.GenerationContext.SignatureContext.StubReturnType} {inheritedStub.OriginalDeclaringInterface.Info.Type.FullTypeName}.{inheritedStub.MethodInfo.MethodName}"); 699writer.Write($"({string.Join(", ", inheritedStub.GenerationContext.SignatureContext.StubParameters.Select(p => p.NormalizeWhitespace().ToString()))})"); 818IncrementalMethodStubGenerationContext genCtx = inheritedStub.GenerationContext; 908IncrementalMethodStubGenerationContext generationContext = shadow.GenerationContext;
ComMethodContext.cs (5)
78if (GenerationContext.VtableIndexData.Direction is not (MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional) 84if (GenerationContext is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext) 98if (GenerationContext.VtableIndexData.Direction is not (MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional) 102return new SkippedStubContext(GenerationContext.OriginalDefiningType); 104if (GenerationContext is not SourceAvailableIncrementalMethodStubGenerationContext sourceAvailableContext)