5 implementations of FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationTypeSymbol.cs (1)
62public ISymbol FindImplementationForInterfaceMember(ISymbol interfaceMember) => null;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
110ISymbol ITypeSymbol.FindImplementationForInterfaceMember(ISymbol interfaceMember)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
100public ISymbol FindImplementationForInterfaceMember(ISymbol interfaceMember)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
528Private Function ITypeSymbol_FindImplementationForInterfaceMember(interfaceMember As ISymbol) As ISymbol Implements ITypeSymbol.FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationTypeSymbol.cs (1)
62public ISymbol FindImplementationForInterfaceMember(ISymbol interfaceMember) => null;
51 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.CodeStyle (10)
AbstractSpeculationAnalyzer.cs (2)
783var implementationMember = expressionType.FindImplementationForInterfaceMember(getEnumerator); 969var implementationMember = newSymbolContainingType.FindImplementationForInterfaceMember(symbol);
INamedTypeSymbolExtensions.cs (5)
78=> classOrStructType.FindImplementationForInterfaceMember(member) != null; 123return accessor == null || !IsImplementable(accessor) || classOrStructType.FindImplementationForInterfaceMember(accessor) != null; 155var implementation = classOrStructType.FindImplementationForInterfaceMember(member); 261var implementation = classOrStructType.FindImplementationForInterfaceMember(m); 280var implementation = classOrStructType.FindImplementationForInterfaceMember(m);
ISymbolExtensions.cs (1)
101let impl = containingType.FindImplementationForInterfaceMember(interfaceMember)
NamingStyleRules.cs (1)
103if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))
UseNamedMemberInitializerAnalyzer.cs (1)
192typeMember = classOrStructType?.FindImplementationForInterfaceMember(member);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractSemanticFactsService.cs (1)
113var impl = type.FindImplementationForInterfaceMember(methodToLookFor) ?? methodToLookFor;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CastSimplifier.cs (1)
1146var implementationMember = rewrittenContainingType.FindImplementationForInterfaceMember(originalMemberSymbol);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ConvertToRecordHelpers.cs (1)
1102equals.Equals(equals.ContainingType.FindImplementationForInterfaceMember(equatableEquals)))
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertToRecordHelpers.cs (1)
1102equals.Equals(equals.ContainingType.FindImplementationForInterfaceMember(equatableEquals)))
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
194var impl = containingType.FindImplementationForInterfaceMember(interfaceMember);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1054var isDispose = methodSymbol.Equals(type.FindImplementationForInterfaceMember(disposeMethod));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CastSimplifier.cs (1)
1146var implementationMember = rewrittenContainingType.FindImplementationForInterfaceMember(originalMemberSymbol);
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
145var impl = namedTypeSymbol.FindImplementationForInterfaceMember(interfaceMember);
Microsoft.CodeAnalysis.Features (8)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
308if (collectionType.FindImplementationForInterfaceMember(countSymbol) is not IMethodSymbol countImpl || 309collectionType.FindImplementationForInterfaceMember(indexerSymbol) is not IMethodSymbol indexerImpl)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
174var impl = type.FindImplementationForInterfaceMember(formatMethod);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
127return (IMethodSymbol?)containingType.FindImplementationForInterfaceMember(method);
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
86return state.ClassOrStructType.FindImplementationForInterfaceMember(disposeMethod) == null;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
101=> _symbol.FindImplementationForInterfaceMember(interfaceMember);
PullMemberUp\MembersPuller.cs (1)
538var implementationOfMember = selectedMember.ContainingType.FindImplementationForInterfaceMember(interfaceMember);
UseNamedMemberInitializerAnalyzer.cs (1)
192typeMember = classOrStructType?.FindImplementationForInterfaceMember(member);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
528Private Function ITypeSymbol_FindImplementationForInterfaceMember(interfaceMember As ISymbol) As ISymbol Implements ITypeSymbol.FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
CodeGen\CodeGenTuples.vb (14)
17324Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c2Interfaces(0), TypeSymbol).GetMember("M"))) 17325Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c1Interfaces(0), TypeSymbol).GetMember("M"))) 17393Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c2Interfaces(0), TypeSymbol).GetMember("M"))) 17394Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c1Interfaces(0), TypeSymbol).GetMember("M"))) 17634c3.FindImplementationForInterfaceMember(DirectCast(c3Interfaces(0), TypeSymbol).GetMember("M")).ToTestDisplayString()) 17636c3.FindImplementationForInterfaceMember(comp.GetTypeByMetadataName("C4").InterfacesNoUseSiteDiagnostics()(0).GetMember("M")).ToTestDisplayString()) 21363Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21364Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21365Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21366Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21498Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21499Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21500Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21501Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M")))
Microsoft.CodeAnalysis.Workspaces (10)
AbstractSemanticFactsService.cs (1)
113var impl = type.FindImplementationForInterfaceMember(methodToLookFor) ?? methodToLookFor;
AbstractSpeculationAnalyzer.cs (2)
783var implementationMember = expressionType.FindImplementationForInterfaceMember(getEnumerator); 969var implementationMember = newSymbolContainingType.FindImplementationForInterfaceMember(symbol);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (5)
78=> classOrStructType.FindImplementationForInterfaceMember(member) != null; 123return accessor == null || !IsImplementable(accessor) || classOrStructType.FindImplementationForInterfaceMember(accessor) != null; 155var implementation = classOrStructType.FindImplementationForInterfaceMember(member); 261var implementation = classOrStructType.FindImplementationForInterfaceMember(m); 280var implementation = classOrStructType.FindImplementationForInterfaceMember(m);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (1)
101let impl = containingType.FindImplementationForInterfaceMember(interfaceMember)
NamingStyleRules.cs (1)
103if (symbol.Equals(containingType.FindImplementationForInterfaceMember(implementedInterfaceMember)))