1 instantiation of SynthesizedExplicitImplementationForwardingMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1888return (new SynthesizedExplicitImplementationForwardingMethod(interfaceMethod, implementingMethod, this), null);
26 references to SynthesizedExplicitImplementationForwardingMethod
Microsoft.CodeAnalysis.CSharp (10)
Compiler\MethodCompiler.cs (1)
846foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).ForwardingMethods)
Compiler\SynthesizedMetadataCompiler.cs (1)
77foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).ForwardingMethods)
Symbols\Source\SourceMemberContainerSymbol.cs (4)
6047public static readonly SynthesizedExplicitImplementations Empty = new SynthesizedExplicitImplementations(ImmutableArray<SynthesizedExplicitImplementationForwardingMethod>.Empty, 6050public readonly ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> ForwardingMethods; 6054ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods, 6062ImmutableArray<SynthesizedExplicitImplementationForwardingMethod> forwardingMethods,
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
82foreach (var forwardingMethod in synthesizedImplementations.ForwardingMethods) 114var forwardingMethods = ArrayBuilder<SynthesizedExplicitImplementationForwardingMethod>.GetInstance(); 183if (synthesizedImplementation.ForwardingMethod is SynthesizedExplicitImplementationForwardingMethod forwardingMethod) 1811private (SynthesizedExplicitImplementationForwardingMethod? ForwardingMethod, (MethodSymbol Body, MethodSymbol Implemented)? MethodImpl)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
355var bridge = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single();
Symbols\IndexerTests.cs (2)
171private static KeyValuePair<string, string> GetPairForSynthesizedExplicitImplementation(SynthesizedExplicitImplementationForwardingMethod bridge) 489var synthesizedExplicitImplementation = @class.GetSynthesizedExplicitImplementations(default(CancellationToken)).ForwardingMethods.Single();
Symbols\InterfaceImplementationTests.cs (5)
1085var synthesizedExplicitMethod1Impl = synthesizedExplicitImpls[0]; 1090var synthesizedExplicitMethod2Impl = synthesizedExplicitImpls[1]; 1655var synthesizedExplicitImpl = classC.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single(); 1900var bridgeMethod = derivedType.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single(); 2036var synthesized = derivedType.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single();
Symbols\Source\CustomModifierCopyTests.cs (8)
65var method2ExplicitImpl = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single(); 114foreach (var explicitImpl in method2ExplicitImpls) 530foreach (var explicitImpl in class1SynthesizedExplicitImpls) 543var class2Method2SynthesizedExplicitImpl = class2.GetSynthesizedExplicitImplementations(CancellationToken.None).ForwardingMethods.Single(); 559var class3Method1SynthesizedExplicitImpl = class3SynthesizedExplicitImpls[0]; 565var class3Method2SynthesizedExplicitImpl = class3SynthesizedExplicitImpls[1]; 738var explicitGetterImpl = explicitImpls.Where(impl => impl.ImplementingMethod.MethodKind == MethodKind.PropertyGet).Single(); 741var explicitSetterImpl = explicitImpls.Where(impl => impl.ImplementingMethod.MethodKind == MethodKind.PropertySet).Single();