1 instantiation of ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
105
methodContexts.Add(new
ComMethodContext
(
27 references to ComMethodContext
Microsoft.Interop.ComInterfaceGenerator (27)
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 (18)
47
MethodContexts: ImmutableArray<
ComMethodContext
>.Empty.ToSequenceEqual()
100
var result =
ComMethodContext
.CalculateAllMethods(ifaceCtxs, ct);
102
List<
ComMethodContext
> methodContexts = new();
468
private static ImmutableArray<ComInterfaceAndMethodsContext> GroupComContextsForInterfaceGeneration(ImmutableArray<
ComMethodContext
> methods, ImmutableArray<ComInterfaceContext> interfaces, CancellationToken ct)
493
var methodList = ImmutableArray.CreateBuilder<
ComMethodContext
>();
496
var
method = methods[methodIndex];
504
var
potentialShadowedMethod = methodList[i];
524
static bool MethodEquals(
ComMethodContext
a,
ComMethodContext
b)
545
foreach (
ComMethodContext
inheritedMethod in interfaceMethods.InheritedMethods)
555
foreach (
ComMethodContext
declaredMethod in
619
foreach (
ComMethodContext
declaredMethodContext in data.DeclaredMethods
630
foreach (
ComMethodContext
declaredMethod in data.DeclaredMethods)
648
foreach (
ComMethodContext
inheritedStub in data.InheritedMethods)
679
foreach (
ComMethodContext
inheritedStub in data.InheritedMethods)
816
private static BasePropertyDeclarationSyntax SynthesizeUnreachableInheritedPropertyAccessor(
ComMethodContext
inheritedStub)
890
(ContainingSyntax syntax, IEnumerable<
ComMethodContext
>? shadowingMethods) = data;
906
foreach (
ComMethodContext
shadow in shadowingMethods)
ComMethodContext.cs (5)
17
internal 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
"/>.
52
public override bool Equals(object obj) => obj is
ComMethodContext
other && Equals(other);
56
public bool Equals(
ComMethodContext
other) => _state.Equals(other);