100 references to FindImplementationForInterfaceMember
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
530FindImplementationForInterfaceMember(DirectCast(interfaceMember, Symbol)),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (99)
SymbolsTests\DefaultInterfaceImplementationTests.vb (7)
80Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 162Assert.Null(i2.FindImplementationForInterfaceMember(i1M1)) 11509Assert.Same(c1.GetMember(Of EventSymbol)("E1"), c1.FindImplementationForInterfaceMember(i1WinRT)) 11510Assert.Same(c2.GetMember(Of EventSymbol)("E2"), c2.FindImplementationForInterfaceMember(i1WinRT)) 11511Assert.Null(i2.FindImplementationForInterfaceMember(i1WinRT)) 11512Assert.Null(i2.FindImplementationForInterfaceMember(i1WinRT.AddMethod)) 11513Assert.Null(i2.FindImplementationForInterfaceMember(i1WinRT.RemoveMethod))
SymbolsTests\InterfaceImplementationTests.vb (5)
106Dim implementingMember = derivedType.FindImplementationForInterfaceMember(interfaceMember) 133Assert.Null(i2.FindImplementationForInterfaceMember(i1M)) 167Assert.Null(i2.FindImplementationForInterfaceMember(i1M)) 193Assert.Null(i2.FindImplementationForInterfaceMember(i1M)) 227Assert.Null(i2.FindImplementationForInterfaceMember(i1M))
SymbolsTests\Source\ImplementsTests.vb (45)
1747Assert.Equal(fooY, barType.FindImplementationForInterfaceMember(ifooTypeSayWithInt)) 1748Assert.Equal(fooX, barType.FindImplementationForInterfaceMember(ifooTypeSayWithString)) 1749Assert.Equal(fooY, fooType.FindImplementationForInterfaceMember(ifooTypeSayWithInt)) 1750Assert.Equal(fooX, fooType.FindImplementationForInterfaceMember(ifooTypeSayWithString)) 2238Assert.Equal(fooY, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithInt)) 2239Assert.Equal(fooYGetter, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithIntGetter)) 2240Assert.Equal(fooX, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithString)) 2241Assert.Equal(fooXGetter, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithStringGetter)) 2242Assert.Equal(fooY, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithInt)) 2243Assert.Equal(fooYGetter, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithIntGetter)) 2244Assert.Equal(fooX, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithString)) 2245Assert.Equal(fooXGetter, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithStringGetter)) 2321Assert.Equal(fooY, barType.FindImplementationForInterfaceMember(ifooTypeSayWithInt)) 2322Assert.Equal(barX, barType.FindImplementationForInterfaceMember(ifooTypeSayWithString)) 2323Assert.Equal(fooY, fooType.FindImplementationForInterfaceMember(ifooTypeSayWithInt)) 2324Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeSayWithString)) 2325Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeSayWithLong)) 2326Assert.Null(barType.FindImplementationForInterfaceMember(ifooTypeSayWithLong)) 2417Assert.Equal(fooY, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithInt)) 2418Assert.Equal(fooYGetter, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithIntGetter)) 2419Assert.Equal(barX, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithString)) 2420Assert.Equal(barXGetter, barType.FindImplementationForInterfaceMember(ifooTypeStyleWithStringGetter)) 2421Assert.Equal(fooY, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithInt)) 2422Assert.Equal(fooYGetter, fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithIntGetter)) 2423Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithString)) 2424Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithStringGetter)) 2425Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithLong)) 2426Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeStyleWithLongGetter)) 2427Assert.Null(barType.FindImplementationForInterfaceMember(ifooTypeStyleWithLong)) 2428Assert.Null(barType.FindImplementationForInterfaceMember(ifooTypeStyleWithLongGetter)) 2487Assert.Null(fooType.FindImplementationForInterfaceMember(ifooTypeSayWithInt)) 2583Dim implementedMethod = dClass.FindImplementationForInterfaceMember(iFooMethod) 3493Assert.Null(typeA.FindImplementationForInterfaceMember(interfaceImplicit)) 3494Assert.Null(typeA.FindImplementationForInterfaceMember(interfaceExplicit)) 3496Assert.Equal(typeA, typeB.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3497Assert.Equal(typeA, typeB.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType) 3499Assert.Equal(typeA, typeC.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3500Assert.Equal(typeA, typeC.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType) 3502Assert.Equal(typeA, typeD.FindImplementationForInterfaceMember(interfaceImplicit).ContainingType) 3503Assert.Equal(typeD, typeD.FindImplementationForInterfaceMember(interfaceExplicit).ContainingType) 3693Assert.Null(classType.FindImplementationForInterfaceMember(interfaceProperty)) 3815Assert.Equal(baseAdder, derivedType.FindImplementationForInterfaceMember(interfaceAdder)) 3816Assert.Equal(baseAdder, baseType.FindImplementationForInterfaceMember(interfaceAdder)) 3818Assert.Null(derivedType.FindImplementationForInterfaceMember(interfaceEvent)) 3819Assert.Null(baseType.FindImplementationForInterfaceMember(interfaceEvent))
SymbolsTests\StaticAbstractMembersInInterfacesTests.vb (42)
128Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 131Assert.Null(c.FindImplementationForInterfaceMember(i1M1)) 174Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 177Assert.Null(c.FindImplementationForInterfaceMember(i1M1)) 220Assert.Null(i1M1.ContainingType.FindImplementationForInterfaceMember(i1M1)) 223Assert.Null(c.FindImplementationForInterfaceMember(i1M1)) 894Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 895Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 896Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 899Assert.Null(c.FindImplementationForInterfaceMember(i1P1)) 900Assert.Null(c.FindImplementationForInterfaceMember(i1P1.GetMethod)) 901Assert.Null(c.FindImplementationForInterfaceMember(i1P1.SetMethod)) 943Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 944Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 945Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 948Assert.Null(c.FindImplementationForInterfaceMember(i1P1)) 949Assert.Null(c.FindImplementationForInterfaceMember(i1P1.GetMethod)) 950Assert.Null(c.FindImplementationForInterfaceMember(i1P1.SetMethod)) 992Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1)) 993Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.GetMethod)) 994Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.SetMethod)) 997Assert.Null(c.FindImplementationForInterfaceMember(i1P1)) 998Assert.Null(c.FindImplementationForInterfaceMember(i1P1.GetMethod)) 999Assert.Null(c.FindImplementationForInterfaceMember(i1P1.SetMethod)) 1782Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1783Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1784Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1787Assert.Null(c.FindImplementationForInterfaceMember(i1E1)) 1788Assert.Null(c.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1789Assert.Null(c.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1831Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1832Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1833Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1836Assert.Null(c.FindImplementationForInterfaceMember(i1E1)) 1837Assert.Null(c.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1838Assert.Null(c.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1880Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1)) 1881Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1882Assert.Null(i1E1.ContainingType.FindImplementationForInterfaceMember(i1E1.RemoveMethod)) 1885Assert.Null(c.FindImplementationForInterfaceMember(i1E1)) 1886Assert.Null(c.FindImplementationForInterfaceMember(i1E1.AddMethod)) 1887Assert.Null(c.FindImplementationForInterfaceMember(i1E1.RemoveMethod))