33 references to GetSynthesizedExplicitImplementations
Microsoft.CodeAnalysis.CSharp (5)
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)
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
388
foreach ((MethodSymbol body, MethodSymbol implemented) in container.
GetSynthesizedExplicitImplementations
(cancellationToken: default).MethodImpls)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
618
this.
GetSynthesizedExplicitImplementations
(cancellationToken); //force interface and base class errors to be checked
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
75
SynthesizedExplicitImplementations synthesizedImplementations =
GetSynthesizedExplicitImplementations
(cancellationToken: default);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
2730
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)
150
var bridgeMethods = sourceType.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods;
161
bridgeMethods = sourceType.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods;
340
var synthesizedExplicitImplementations = @class.
GetSynthesizedExplicitImplementations
(default(CancellationToken)).ForwardingMethods;
422
var synthesizedExplicitImplementations = @class.
GetSynthesizedExplicitImplementations
(default(CancellationToken)).ForwardingMethods;
489
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);
528
var class1SynthesizedExplicitImpls = class1.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods;
543
var class2Method2SynthesizedExplicitImpl = class2.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods.Single();
556
var class3SynthesizedExplicitImpls = (from m in class3.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods orderby m.Name select m).ToArray();
604
Assert.False(@class.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods.Any());
701
Assert.Equal(0, @class.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods.Length);
735
var explicitImpls = @class.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods;
775
Assert.Equal(0, @class.
GetSynthesizedExplicitImplementations
(CancellationToken.None).ForwardingMethods.Length);