6 implementations of GetTypeMembers
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
42public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamespaceOrTypeSymbol.cs (1)
33ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers(string name, int arity)
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedNamespaceOrTypeSymbol.cs (1)
28public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
117public override ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
284Public Function INamespaceOrTypeSymbol_GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
42public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name, int arity)
147 references to GetTypeMembers
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
75foreach (var candidateTopLevelType in compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName, arity: 0))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
83symbol = updatedContainingType.GetTypeMembers(symbol.Name, symbol.Arity).First(m => m.TypeKind == symbol.TypeKind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
175foreach (var type in container.GetTypeMembers(name, arity))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (139)
Compilation\SemanticModelAPITests.cs (15)
462var a = global.GetTypeMembers("A", 0).Single(); 466var b = global.GetTypeMembers("B", 0).Single(); 467var r = b.GetTypeMembers("R", 0).Single(); 468var q = r.GetTypeMembers("Q", 0).Single(); 539var a = comp.GlobalNamespace.GetTypeMembers("A", 0).Single().ISymbol; 565var b = comp.GlobalNamespace.GetTypeMembers("B", 0).Single().ISymbol; 593var c = comp.GlobalNamespace.GetTypeMembers("C", 1).Single(); 617var a = comp.GlobalNamespace.GetTypeMembers("A", 1).Single(); 619var b = comp.GlobalNamespace.GetTypeMembers("B", 1).Single(); 679Assert.Equal(compilation.GlobalNamespace.GetTypeMembers("Program", 0).Single(), info.Symbol); 734var a = comp.GlobalNamespace.GetTypeMembers("A", 0).Single(); 758var a2 = global.GetTypeMembers("A", 0).Single(); 759var b2 = a2.GetTypeMembers("B", 0).Single(); 824var bOuter = comp.GlobalNamespace.GetTypeMembers("B", 0).Single(); 825var bInner = (comp.GlobalNamespace.GetMembers("N").Single() as INamespaceSymbol).GetTypeMembers("B", 0).Single();
Symbols\Source\BaseClassTests.cs (64)
36var x = global.GetTypeMembers("X", 0).Single(); 37var y = global.GetTypeMembers("Y", 0).Single(); 56var x = global.GetTypeMembers("X", 0).Single(); 57var y = global.GetTypeMembers("Y", 0).Single(); 79var x = global.GetTypeMembers("C4", 0).Single(); 103var a = global.GetTypeMembers("A", 1).Single(); 104var b = a.GetTypeMembers("B", 0).Single(); 105var e = a.GetTypeMembers("E", 0).Single(); 132var a = global.GetTypeMembers("A", 1).Single(); 133var b = global.GetTypeMembers("B", 0).Single(); 134var d = b.GetTypeMembers("D", 0).Single(); 158var a = global.GetTypeMembers("A", 0).Single(); 159var ic = a.GetTypeMembers("IC", 0).Single(); 181var a = global.GetTypeMembers("A", 0).Single(); 182var b = a.GetTypeMembers("B", 0).Single(); 183var ic = b.GetTypeMembers("IC", 0).Single(); 234var z = global.GetTypeMembers("Z", 0).Single(); 235var w = global.GetTypeMembers("W", 0).Single(); 263var a = global.GetTypeMembers("A", 0).Single(); 300var a = global.GetTypeMembers("A", 0).Single(); 463var c = global.GetTypeMembers("C", 0).Single(); 481var e = global.GetTypeMembers("E", 0).Single(); 499var g = global.GetTypeMembers("G", 0).Single(); 519var j = global.GetTypeMembers("J", 0).Single(); 533var m = global.GetTypeMembers("M", 0).Single(); 548var o = global.GetTypeMembers("O", 0).Single(); 566var p = global.GetTypeMembers("P", 0).Single(); 586var r = global.GetTypeMembers("R", 0).Single(); 605var u = global.GetTypeMembers("U", 0).Single(); 625var c = global.GetTypeMembers("C", 0).Single(); 650var x = global.GetTypeMembers("X", 0).Single(); 669var b = global.GetTypeMembers("B", 0).Single(); 686var z = global.GetTypeMembers("Z", 1).Single(); 995var x = global.GetTypeMembers("I4", 0).Single(); 1016var B1 = global1.GetTypeMembers("ClassB", 0).Single(); 1017var A1 = global1.GetTypeMembers("ClassA", 0).Single(); 1034var B2 = global.GetTypeMembers("ClassB", 0).Single(); 1035var C = global.GetTypeMembers("ClassC", 0).Single(); 1048var A2 = global.GetTypeMembers("ClassA", 0).Single(); 1072var B1 = global1.GetTypeMembers("ClassB", 0).Distinct().Single(); 1073var A1 = global1.GetTypeMembers("ClassA", 0).Single(); 1094var B2 = global.GetTypeMembers("ClassB", 0).Single(); 1095var C = global.GetTypeMembers("ClassC", 0).Single(); 1109var A2 = global.GetTypeMembers("ClassA", 0).Single(); 1130var B1 = global1.GetTypeMembers("ClassB", 0).Single(); 1131var A1 = global1.GetTypeMembers("ClassA", 0).Single(); 1163var A2 = global.GetTypeMembers("ClassA", 0).Single(); 1164var B2 = global.GetTypeMembers("ClassB", 0).Single(); 1165var C = global.GetTypeMembers("ClassC", 0).Single(); 1188var B1 = global1.GetTypeMembers("ClassB", 0).Distinct().Single(); 1189var A1 = global1.GetTypeMembers("ClassA", 0).Single(); 1220var B2 = global.GetTypeMembers("ClassB", 0).Single(); 1221var C = global.GetTypeMembers("ClassC", 0).Single(); 1229var A2 = global.GetTypeMembers("ClassA", 0).Single(); 1336var g = global.GetTypeMembers("G", 1).Single(); 1337var c = global.GetTypeMembers("C", 0).Single(); 1384var x = global.GetTypeMembers("X", 0).Single(); 1385var a1 = x.GetTypeMembers("A1", 0).Single(); 1387var b1 = x.GetTypeMembers("B1", 0).Single(); 1389var broken = global.GetTypeMembers("Broken", 0).Single(); 1390var a2 = broken.GetTypeMembers("A2", 0).Single(); 1393var b2 = broken.GetTypeMembers("B2", 0).Single(); 1412var a = global.GetTypeMembers("A", 0).Single(); 1413var b = global.GetTypeMembers("B", 0).Single();
Symbols\Source\DelegateTests.cs (5)
72var a = global.GetTypeMembers("A", 0).Single(); 92var d = global.GetTypeMembers("D", 0); 107var a = global.GetTypeMembers("A", 0).Single(); 127var v = comp.GlobalNamespace.GetTypeMembers("MyDel", 0).Single(); 156var myDel = global.GetTypeMembers("MyDel", 0).Single() as NamedTypeSymbol;
Symbols\Source\FieldTests.cs (6)
62var a = global.GetTypeMembers("A", 0).Single(); 90var a = global.GetTypeMembers("A", 0).Single(); 119var a = global.GetTypeMembers("A", 0).Single(); 143var a = global.GetTypeMembers("A", 0).Single(); 177var a = global.GetTypeMembers("A", 0).Single(); 200var type1 = comp.GlobalNamespace.GetTypeMembers("C", 1).Single();
Symbols\Source\MethodTests.cs (18)
35var a = global.GetTypeMembers("A", 0).Single(); 70var a = global.GetTypeMembers(className, 0).Single(); 115var a = global.GetTypeMembers("A", 0).Single(); 140var a = global.GetTypeMembers("A", 0).Single(); 167var a = global.GetTypeMembers("A", 0).Single(); 169var b = global.GetTypeMembers("B", 0).Single(); 189var mylist = global.GetTypeMembers("MyList", 1).Single(); 211var a = global.GetTypeMembers("A", 0).Single(); 230var a = global.GetTypeMembers("A", 0).Single(); 258var a = global.GetTypeMembers("A", 0).Single(); 283var a = global.GetTypeMembers("A", 0).Single(); 304var a = global.GetTypeMembers("A", 0).Single(); 326var a = global.GetTypeMembers("A", 0).Single(); 342var a = global.GetTypeMembers("A", 0).Single(); 359var a = global.GetTypeMembers("A", 0).Single(); 403var a = global.GetTypeMembers("A", 0).Single(); 426var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single(); 445var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single();
Symbols\Source\ModifierTests.cs (1)
49var a = global.GetTypeMembers("A", 0).Single();
Symbols\Source\PropertyTests.cs (3)
359var a = global.GetTypeMembers("A", 0).Single(); 360var i = global.GetTypeMembers("I", 0).Single(); 1924var a = global.GetTypeMembers("A", 0).Single();
Symbols\Source\SourcePlusMetadataTests.cs (8)
28var x = global.GetTypeMembers("X", 0).Single(); 30var y = global.GetTypeMembers("Y", 0).Single(); 45var x = global.GetTypeMembers("X", 0).Single(); 61var x = global.GetTypeMembers("X", 0).Single(); 63var y = global.GetTypeMembers("Y", 0).Single(); 65var z = global.GetTypeMembers("Z", 0).Single(); 251var a = global.GetTypeMembers("A", 0).Single(); 252var b = global.GetTypeMembers("B", 0).Single();
Symbols\Source\TypeMapTests.cs (9)
55var at = global.GetTypeMembers("A", 1).Single(); // A<T> 57Assert.Equal(t, TypeArg(at.GetTypeMembers("TBox", 0).Single().BaseType())); 58var atbu = at.GetTypeMembers("B", 1).Single(); // A<T>.B<U> 60var c = atbu.GetTypeMembers("C", 0).Single(); // A<T>.B<U>.C 65var e = global.GetTypeMembers("E", 0).Single(); // E 66var f = global.GetTypeMembers("F", 0).Single(); // F 67var top = global.GetTypeMembers("Top", 0).Single(); // Top 72var bf = top.GetTypeMembers("BF", 0).Single(); // Top.BF 114var c = global.GetTypeMembers("C", 0).Single() as NamedTypeSymbol;
Symbols\TypeTests.cs (10)
87var a = global.GetTypeMembers("A", 0).Single(); 88var b = global.GetTypeMembers("B", 0).Single(); 466var classTest = comp.GlobalNamespace.GetTypeMembers("Test", 0).Single(); 621var a = global.GetTypeMembers("A", 0).Single(); 669var v = comp.GlobalNamespace.GetTypeMembers("MyEnum", 0).Single(); 1037var interfaces = global.GetTypeMembers("I5", 0).Single().AllInterfaces(); 1039Assert.Equal(global.GetTypeMembers("I4", 0).Single(), interfaces[0]); 1040Assert.Equal(global.GetTypeMembers("I3", 0).Single(), interfaces[1]); 1041Assert.Equal(global.GetTypeMembers("I2", 0).Single(), interfaces[2]); 1042Assert.Equal(global.GetTypeMembers("I1", 0).Single(), interfaces[3]);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
284Public Function INamespaceOrTypeSymbol_GetTypeMembers(name As String, arity As Integer) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (1)
75foreach (var candidateTopLevelType in compilation.SourceModule.GlobalNamespace.GetTypeMembers(WellKnownMemberNames.TopLevelStatementsEntryPointTypeName, arity: 0))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
83symbol = updatedContainingType.GetTypeMembers(symbol.Name, symbol.Arity).First(m => m.TypeKind == symbol.TypeKind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
175foreach (var type in container.GetTypeMembers(name, arity))
Microsoft.Interop.SourceGeneration (1)
TypeSymbolExtensions.cs (1)
250currentType = currentType.GetTypeMembers(originalNestedType.Name, originalNestedType.Arity).First();