1 write to ForwardingMethods
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5145
ForwardingMethods
= forwardingMethods.NullToEmpty();
31 references to ForwardingMethods
Microsoft.CodeAnalysis.CSharp (3)
Compiler\MethodCompiler.cs (1)
834
foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).
ForwardingMethods
)
Compiler\SynthesizedMetadataCompiler.cs (1)
75
foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).
ForwardingMethods
)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
82
foreach (var forwardingMethod in synthesizedImplementations.
ForwardingMethods
)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
2729
var symbolSynthesized = class1.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
355
var bridge = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
387
Assert.Equal(0, @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length); //not needed
Symbols\IndexerTests.cs (5)
148
var bridgeMethods = sourceType.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
159
bridgeMethods = sourceType.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
338
var synthesizedExplicitImplementations = @class.GetSynthesizedExplicitImplementations(default(CancellationToken)).
ForwardingMethods
;
420
var synthesizedExplicitImplementations = @class.GetSynthesizedExplicitImplementations(default(CancellationToken)).
ForwardingMethods
;
487
var synthesizedExplicitImplementation = @class.GetSynthesizedExplicitImplementations(default(CancellationToken)).
ForwardingMethods
.Single();
Symbols\InterfaceImplementationTests.cs (8)
942
Assert.False(derivedClass.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Any());
1013
var synthesizedExplicitImpls = (from m in derivedClass.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
orderby m.MethodKind select m).ToArray();
1082
var synthesizedExplicitImpls = (from m in @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
orderby m.Name select m).ToArray();
1655
var synthesizedExplicitImpl = classC.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
1715
Assert.Equal(0, classC.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);
1900
var bridgeMethod = derivedType.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
2036
var synthesized = derivedType.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
2707
Assert.True(derivedType.GetSynthesizedExplicitImplementations(cancellationToken: default).
ForwardingMethods
.IsEmpty);
Symbols\Source\CustomModifierCopyTests.cs (12)
65
var method2ExplicitImpl = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
112
var method2ExplicitImpls = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
159
Assert.Equal(0, @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);
208
Assert.Equal(0, baseClass.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);
221
Assert.Equal(0, derivedClass.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);
409
var class1SynthesizedExplicitImpls = class1.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
424
var class2Method2SynthesizedExplicitImpl = class2.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Single();
437
var class3SynthesizedExplicitImpls = (from m in class3.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
orderby m.Name select m).ToArray();
485
Assert.False(@class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Any());
570
Assert.Equal(0, @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);
604
var explicitImpls = @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
;
644
Assert.Equal(0, @class.GetSynthesizedExplicitImplementations(CancellationToken.None).
ForwardingMethods
.Length);