1 instantiation of ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
105methodContexts.Add(new ComMethodContext(
25 references to ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (25)
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 (18)
47MethodContexts: ImmutableArray<ComMethodContext>.Empty.ToSequenceEqual() 100var result = ComMethodContext.CalculateAllMethods(ifaceCtxs, ct); 102List<ComMethodContext> methodContexts = new(); 440private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<ComMethodContext> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct) 465var methodList = ImmutableArray.CreateBuilder<ComMethodContext>(); 468var method = methods[methodIndex]; 476var potentialShadowedMethod = methodList[i]; 496static bool MethodEquals(ComMethodContext a, ComMethodContext b) 520foreach (ComMethodContext inheritedMethod in interfaceMethods.InheritedMethods) 530foreach (ComMethodContext declaredMethod in 621foreach (ComMethodContext declaredMethodContext in data.DeclaredMethods 635foreach (ComMethodContext declaredMethod in data.DeclaredMethods) 653foreach (ComMethodContext inheritedStub in data.InheritedMethods) 684foreach (ComMethodContext inheritedStub in data.InheritedMethods) 821private static BasePropertyDeclarationSyntax SynthesizeUnreachableInheritedPropertyAccessor(ComMethodContext inheritedStub) 895(ContainingSyntax syntax, IEnumerable<ComMethodContext>? shadowingMethods, bool useUpdatedMemorySafetyRules) = data; 914foreach (ComMethodContext shadow in shadowingMethods)
ComMethodContext.cs (3)
17internal sealed class ComMethodContext : IEquatable<ComMethodContext> 52public override bool Equals(object obj) => obj is ComMethodContext other && Equals(other); 56public bool Equals(ComMethodContext other) => _state.Equals(other);