2 instantiations of ComInterfaceContext
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceContext.cs (2)
55var baselessCtx = DiagnosticOr<ComInterfaceContext>.From(new ComInterfaceContext(iface, null, iface.Options) { IsExternallyDefined = iface.IsExternallyDefined }); 79var ctx = DiagnosticOr<ComInterfaceContext>.From(new ComInterfaceContext(iface, baseContext.Value, iface.Options) { IsExternallyDefined = iface.IsExternallyDefined });
29 references to ComInterfaceContext
Microsoft.Interop.ComInterfaceGenerator (29)
ComInterfaceAndMethodsContext.cs (1)
13internal sealed record ComInterfaceAndMethodsContext(ComInterfaceContext Interface, SequenceEqualImmutableArray<ComMethodContext> Methods)
ComInterfaceContext.cs (13)
16internal ComInterfaceContext? Base { get; init; } 20private ComInterfaceContext(ComInterfaceInfo info, ComInterfaceContext? @base, ComInterfaceOptions options) 30public static ImmutableArray<DiagnosticOr<ComInterfaceContext>> GetContexts(ImmutableArray<ComInterfaceInfo> data, CancellationToken _) 33var accumulator = ImmutableArray.CreateBuilder<DiagnosticOr<ComInterfaceContext>>(data.Length); 38Dictionary<string, DiagnosticOr<ComInterfaceContext>> nameToContextCache = new(); 46DiagnosticOr<ComInterfaceContext> AddContext(ComInterfaceInfo iface) 55var baselessCtx = DiagnosticOr<ComInterfaceContext>.From(new ComInterfaceContext(iface, null, iface.Options) { IsExternallyDefined = iface.IsExternallyDefined }); 60DiagnosticOr<ComInterfaceContext> baseReturnedValue; 70var diagnostic = DiagnosticOr<ComInterfaceContext>.From( 77DiagnosticOr<ComInterfaceContext> baseContext = baseCachedValue ?? baseReturnedValue; 79var ctx = DiagnosticOr<ComInterfaceContext>.From(new ComInterfaceContext(iface, baseContext.Value, iface.Options) { IsExternallyDefined = iface.IsExternallyDefined }); 85internal ComInterfaceContext GetTopLevelBase() 87var currBase = Base;
ComInterfaceGenerator.cs (3)
63.SelectMany(ComInterfaceContext.GetContexts); 412private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 435foreach (var iface in interfaces)
ComMethodContext.cs (12)
32public sealed record Builder(ComInterfaceContext OriginalDeclaringInterface, ComMethodInfo MethodInfo, int Index); 38ComInterfaceContext OriginalDeclaringInterface, 39ComInterfaceContext OwningInterface, 51public ComMethodContext(Builder builder, ComInterfaceContext owningInterface, IncrementalMethodStubGenerationContext generationContext) 62public ComInterfaceContext OriginalDeclaringInterface => _state.OriginalDeclaringInterface; 64public ComInterfaceContext OwningInterface => _state.OwningInterface; 157public static List<(ComInterfaceContext OwningInterface, Builder Method)> CalculateAllMethods(IEnumerable<(ComInterfaceContext, SequenceEqualImmutableArray<ComMethodInfo>)> ifaceAndDeclaredMethods, CancellationToken _) 164var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>(); 165var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 179ImmutableArray<Builder> AddMethods(ComInterfaceContext iface, IEnumerable<ComMethodInfo> declaredMethods) 191var baseComIface = iface.Base;