1 instantiation of ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
104methodContexts.Add(new ComMethodContext(
26 references to ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (26)
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 && !m.IsExternallyDefined); 28public IEnumerable<ComMethodContext> InheritedMethods => Methods.Where(m => m.IsInheritedMethod);
ComInterfaceGenerator.cs (17)
46MethodContexts: ImmutableArray<ComMethodContext>.Empty.ToSequenceEqual() 99var result = ComMethodContext.CalculateAllMethods(ifaceCtxs, ct); 101List<ComMethodContext> methodContexts = new(); 403private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 428var methodList = ImmutableArray.CreateBuilder<ComMethodContext>(); 431var method = methods[methodIndex]; 439var potentialShadowedMethod = methodList[i]; 459static bool MethodEquals(ComMethodContext a, ComMethodContext b) 480foreach (ComMethodContext inheritedMethod in interfaceMethods.InheritedMethods) 490foreach (ComMethodContext declaredMethod in 554foreach (ComMethodContext declaredMethodContext in data.DeclaredMethods 564foreach (ComMethodContext declaredMethod in data.DeclaredMethods) 580foreach (ComMethodContext inheritedStub in data.InheritedMethods) 596foreach (ComMethodContext inheritedStub in data.InheritedMethods) 617(ContainingSyntax syntax, IEnumerable<ComMethodContext>? shadowingMethods) = data; 624foreach (ComMethodContext shadow in shadowingMethods)
ComMethodContext.cs (5)
17internal sealed class ComMethodContext : IEquatable<ComMethodContext> 20/// A partially constructed <see cref="ComMethodContext"/> that does not have a <see cref="SourceAvailableIncrementalMethodStubGenerationContext"/> generated for it yet. 31/// The fully-constructed immutable state for a <see cref="ComMethodContext"/>. 52public override bool Equals(object obj) => obj is ComMethodContext other && Equals(other); 56public bool Equals(ComMethodContext other) => _state.Equals(other);