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