1 instantiation of ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
140
methodContexts.Add(new
ComMethodContext
(
21 references to ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (21)
ComInterfaceAndMethodsContext.cs (4)
13
internal sealed record ComInterfaceAndMethodsContext(ComInterfaceContext Interface, SequenceEqualImmutableArray<
ComMethodContext
> Methods)
18
public IEnumerable<
ComMethodContext
> DeclaredMethods => Methods.Where(m => !m.IsInheritedMethod);
23
public IEnumerable<
ComMethodContext
> ShadowingMethods => Methods.Where(m => m.IsInheritedMethod && !m.IsHiddenOnDerivedInterface && !m.IsExternallyDefined);
28
public IEnumerable<
ComMethodContext
> InheritedMethods => Methods.Where(m => m.IsInheritedMethod);
ComInterfaceGenerator.cs (12)
61
MethodContexts: ImmutableArray<
ComMethodContext
>.Empty.ToSequenceEqual()
135
var result =
ComMethodContext
.CalculateAllMethods(ifaceCtxs, ct);
137
List<
ComMethodContext
> methodContexts = new();
502
private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<
ComMethodContext
> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct)
527
var methodList = ImmutableArray.CreateBuilder<
ComMethodContext
>();
530
var
method = methods[methodIndex];
538
var
potentialShadowedMethod = methodList[i];
558
static bool MethodEquals(
ComMethodContext
a,
ComMethodContext
b)
672
foreach (
ComMethodContext
inheritedMethod in interfaceMethods.InheritedMethods)
687
foreach (
ComMethodContext
declaredMethod in
828
foreach (
var
declaredMethodContext in validDeclaredMethods)
ComMethodContext.cs (5)
21
internal sealed class ComMethodContext : IEquatable<
ComMethodContext
>
24
/// A partially constructed <see cref="
ComMethodContext
"/> that does not have a <see cref="SourceAvailableIncrementalMethodStubGenerationContext"/> generated for it yet.
35
/// The fully-constructed immutable state for a <see cref="
ComMethodContext
"/>.
56
public override bool Equals(object obj) => obj is
ComMethodContext
other && Equals(other);
60
public bool Equals(
ComMethodContext
other) => _state.Equals(other);