1 instantiation of ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
107return new ComMethodContext(
19 references to ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (19)
ComInterfaceAndMethodsContext.cs (4)
13internal sealed record ComInterfaceAndMethodsContext(ComInterfaceContext Interface, SequenceEqualImmutableArray<ComMethodContext> Methods) 18public IEnumerable<ComMethodContext> DeclaredMethods => Methods.Where(m => !m.IsInheritedMethod); 23public IEnumerable<ComMethodContext> ShadowingMethods => Methods.Where(m => m.IsInheritedMethod && !m.IsHiddenOnDerivedInterface); 28public IEnumerable<ComMethodContext> InheritedMethods => Methods.Where(m => m.IsInheritedMethod);
ComInterfaceGenerator.cs (10)
86return ComMethodContext.CalculateAllMethods(data, ct); 451private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 476var methodList = ImmutableArray.CreateBuilder<ComMethodContext>(); 479var method = methods[methodIndex]; 487var potentialShadowedMethod = methodList[i]; 507static bool MethodEquals(ComMethodContext a, ComMethodContext b) 621foreach (ComMethodContext inheritedMethod in interfaceMethods.InheritedMethods) 636foreach (ComMethodContext declaredMethod in 778foreach (var declaredMethodContext in validDeclaredMethods)
ComMethodContext.cs (5)
21internal sealed class ComMethodContext : IEquatable<ComMethodContext> 24/// A partially constructed <see cref="ComMethodContext"/> that does not have a <see cref="IncrementalMethodStubGenerationContext"/> generated for it yet. 35/// The fully-constructed immutable state for a <see cref="ComMethodContext"/>. 56public override bool Equals(object obj) => obj is ComMethodContext other && Equals(other); 60public bool Equals(ComMethodContext other) => _state.Equals(other);