6 implementations of GetTypeMembers
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
39public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamespaceOrTypeSymbol.cs (1)
28ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers(string name)
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedNamespaceOrTypeSymbol.cs (1)
27public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
114public override ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
280Private Function INamespaceOrTypeSymbol_GetTypeMembers(name As String) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
39public ImmutableArray<INamedTypeSymbol> GetTypeMembers(string name)
338 references to GetTypeMembers
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1059foreach (INamedTypeSymbol candidate in container.GetTypeMembers(parts[parts.Length - 1]))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (22)
SymbolKey\SymbolKeyCompilationsTests.cs (11)
131var type = ns.GetTypeMembers("C1").FirstOrDefault(); 158var type = ns.GetTypeMembers("C1").FirstOrDefault(); 186var type = ns.GetTypeMembers("C1").FirstOrDefault(); 228var type = compilation.SourceModule.GlobalNamespace.GetTypeMembers("C").Single(); 464var typeSym00 = namespace1.GetTypeMembers("C1").FirstOrDefault(); 467var typeSym01 = namespace2.GetTypeMembers("C1").FirstOrDefault(); 468var typeSym02 = namespace2.GetTypeMembers("C2").Single(); 546var typeSym1 = comp1.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 549var typeSym2 = comp2.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 572var typeSym01 = namespace1.GetTypeMembers("C1").FirstOrDefault(); 575var typeSym02 = namespace2.GetTypeMembers("C1").FirstOrDefault();
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (3)
71var typesym = comp2.SourceModule.GlobalNamespace.GetTypeMembers("App").FirstOrDefault(); 239var typeA = comp20.SourceModule.GlobalNamespace.GetTypeMembers("A").Single(); 254var typeTest = comp40.SourceModule.GlobalNamespace.GetTypeMembers("Test").FirstOrDefault();
Workspaces\WorkspaceTests_EditorFeatures.cs (8)
438var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 466var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 500var classD = compilation2.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 518var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 554var classDy = compilation2y.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 622var classDy = compilation2y.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 652var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single(); 673var classDz = compilation2Z.SourceModule.GlobalNamespace.GetTypeMembers("D").Single();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (2)
27396var containingType = comp.GlobalNamespace.GetTypeMembers("Program").Single(); 27418var containingType = comp.GlobalNamespace.GetTypeMembers("Program").Single();
CodeGen\FixedSizeBufferTests.cs (1)
576var f = (FieldSymbol)comp2.GlobalNamespace.GetTypeMembers("S")[0].GetMembers("x")[0];
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
199=> namespaceSymbol != null && namespaceSymbol.GetTypeMembers(name).Any(static t => t.DeclaredAccessibility == Accessibility.Public);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\BindingAsyncTests.cs (1)
34var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single();
Semantics\BindingTests.cs (3)
2599var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 2630var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 2659var c = comp.GlobalNamespace.GetTypeMembers("C").Single();
Semantics\ConstantTests.cs (2)
2951var symbol = compilation.GlobalNamespace.GetTypeMembers("c1").First().GetMembers("Z1").First(); 2954symbol = compilation.GlobalNamespace.GetTypeMembers("c1").First().GetMembers("Z2").First();
Semantics\ImplicitlyTypeArraysTests.cs (1)
36var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("F").Single();
Semantics\LookupTests.cs (5)
1529INamedTypeSymbol typeInnerZ = namespaceY.GetTypeMembers("InnerZ").Single(); 1534INamedTypeSymbol typeB = typeA.GetTypeMembers("B").Single(); 2008var ms = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").OfType<MethodSymbol>(); 2039var m = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").Single(); 2069var m = comp.GlobalNamespace.GetTypeMembers("Program").Single().GetMembers("M").Single();
Semantics\OperatorTests.cs (1)
3202var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single();
Semantics\OverloadResolutionTestBase.cs (1)
35var method = (SourceMemberMethodSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single();
Semantics\ScriptSemanticsTests.cs (1)
452members = global.GetTypeMembers("Script");
SourceGeneration\GeneratorDriverTests.cs (1)
140var generatedClass = outputCompilation.GlobalNamespace.GetTypeMembers("GeneratedClass").Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (153)
Compilation\GetSemanticInfoTests.cs (1)
389var tsym = comp.SourceModule.GlobalNamespace.GetTypeMembers("Test").FirstOrDefault();
Compilation\SemanticModelAPITests.cs (1)
867var pTypeSym = comp.SourceModule.GlobalNamespace.GetTypeMembers("PC").Single();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
2788var typeB = n1.GetTypeMembers("B").First() as INamedTypeSymbol; 3077var typeA = ns1.GetTypeMembers("A").First() as INamedTypeSymbol; 3142var typeA = globalNS.GetTypeMembers("ErrorProp").First() as INamedTypeSymbol;
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
9281Assert.Equal(constructedFrom, a.GetTypeMembers("B").Single());
DocumentationComments\PartialTypeDocumentationCommentTests.cs (1)
51_gooClass = _compilation.GlobalNamespace.GetTypeMembers("Goo").Single();
DocumentationComments\TypeDocumentationCommentTests.cs (1)
53Assert.Equal("T:Color", _compilation.GlobalNamespace.GetTypeMembers("Color").Single().GetDocumentationCommentId());
SymbolDisplay\SymbolDisplayTests.cs (4)
5687var type = global.GetTypeMembers("C").Single(); 5691var @delegate = global.GetTypeMembers("D").Single(); 5891var type = global.GetTypeMembers("C").Single(); 5895var @delegate = global.GetTypeMembers("D").Single();
Symbols\AnonymousTypesSymbolTests.cs (1)
1681var programType = (NamedTypeSymbol)(comp.GlobalNamespace.GetTypeMembers("Program").Single());
Symbols\CompilationCreationTests.cs (3)
74TypeSymbol c107 = c1.GlobalNamespace.GetTypeMembers("C107").Single(); 103Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType); 2524var typeC5 = c5.Assembly.GlobalNamespace.GetTypeMembers("C5").Single();
Symbols\IndexerTests.cs (3)
2403NamedTypeSymbol type01 = comp.SourceModule.GlobalNamespace.GetTypeMembers("Test").Single(); 2559Assert.True(((TypeSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single()).GetMembers().Any(x => x.IsIndexer())); 2563Assert.True(((TypeSymbol)compilation.GlobalNamespace.GetTypeMembers("C").Single()).GetMembers().Any(x => x.IsIndexer()));
Symbols\InterfaceImplementationTests.cs (5)
1060var classD = global.GetTypeMembers("CustomModifierOverridingD").Single(); 1066var @interface = global.GetTypeMembers("Interface").Single(); 1070var @class = (SourceNamedTypeSymbol)global.GetTypeMembers("Class").Single(); 1149var type = comp.GlobalNamespace.GetTypeMembers("c2").Single(); 1590var typeSymbol = comp.GlobalNamespace.GetTypeMembers("C1").Single();
Symbols\Metadata\MetadataMemberTests.cs (1)
396var classC = compilation.SourceModule.GlobalNamespace.GetTypeMembers("C").Single();
Symbols\Metadata\PE\NoPia.cs (4)
1235var varI5 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I5").Single(); 1237var varI6 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I6").Single(); 1245var varI7 = varC_Library2.SourceModule.GlobalNamespace.GetTypeMembers("I7").Single(); 1257var varI1 = varC_Pia1.SourceModule.GlobalNamespace.GetTypeMembers("I1").Single();
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (22)
33NamedTypeSymbol classLocalType1 = localConsumer1.SourceModule.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 52NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 72NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 91NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 115NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 133NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 162NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 180NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 199NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 218NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 237NamedTypeSymbol classLocalType1 = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 256NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 275NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 294NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 313NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 332NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 351NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 368NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 388NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 409NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").Single(); 439NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("DrivedClass").Single(); 466NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("Interface1Impl2").Single();
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (6)
98NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("LocalType1").Single(); 135NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 195NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 231NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 266NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single(); 299NamedTypeSymbol classLocalType = localConsumer.GlobalNamespace.GetTypeMembers("TypeSubstitution").Single();
Symbols\MethodEqualityTests.cs (9)
36var class1 = global.GetTypeMembers("Class1").Single(); 40var class2 = global.GetTypeMembers("Class2").Single(); 83var baseClass = global.GetTypeMembers("Base").Single(); 87var derivedClass1 = global.GetTypeMembers("Derived1").Single(); 92var derivedClass2 = global.GetTypeMembers("Derived2").Single(); 143var baseClass = global.GetTypeMembers("Base").Single(); 147var derivedClass1 = global.GetTypeMembers("Derived1").Single(); 152var derivedClass2 = global.GetTypeMembers("Derived2").Single(); 202var @class = global.GetTypeMembers("Class").Single();
Symbols\OverriddenOrHiddenMembersTests.cs (5)
903var classA = (NamedTypeSymbol)global.GetTypeMembers("CustomModifierOverridingA").Single(); 904var classB = (NamedTypeSymbol)global.GetTypeMembers("CustomModifierOverridingB").Single(); 905var classC = (NamedTypeSymbol)global.GetTypeMembers("CustomModifierOverridingC").Single(); 906var classD = (NamedTypeSymbol)global.GetTypeMembers("CustomModifierOverridingD").Single(); 936var classE = (NamedTypeSymbol)global.GetTypeMembers("CustomModifierOverridingE").Single();
Symbols\Retargeting\RetargetCustomAttributes.cs (7)
199var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 208var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 218var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 232var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 242var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 254var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 266var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single();
Symbols\Retargeting\RetargetCustomModifiers.cs (2)
43var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); 161var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single();
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (11)
57var classC = globalNamespace1.GetTypeMembers("C").Single(); 59var interfaceV1 = globalNamespace1.GetTypeMembers("Interface1").Single(); 124var interfaceV2 = globalNamespace2.GetTypeMembers("Interface1").Single(); 147var classD = globalNamespace2.GetTypeMembers("D").Single(); 353var classC1 = globalNamespace1.GetTypeMembers("C1").Single(); 354var classC2 = globalNamespace1.GetTypeMembers("C2").Single(); 355var classC3 = globalNamespace1.GetTypeMembers("C3").Single(); 388var interfaceV2 = globalNamespace2.GetTypeMembers("Interface2").Single(); 393var classD1 = globalNamespace2.GetTypeMembers("D1").Single(); 394var classD2 = globalNamespace2.GetTypeMembers("D2").Single(); 395var classD3 = globalNamespace2.GetTypeMembers("D3").Single();
Symbols\Retargeting\RetargetingTests.cs (2)
733NamedTypeSymbol c1 = comp1.Assembly.GlobalNamespace.GetTypeMembers("C1").Single(); 737NamedTypeSymbol c1r = comp2.GlobalNamespace.GetTypeMembers("C1").Single();
Symbols\Source\DeclaringSyntaxNodeTests.cs (9)
201var c1 = n1.GetTypeMembers("C1").Single() as INamedTypeSymbol; 202var s1 = n1.GetTypeMembers("S1").Single() as INamedTypeSymbol; 235var c1 = n1.GetTypeMembers("C1").Single() as INamedTypeSymbol; 450var c1 = n1.GetTypeMembers("C1").Single() as INamedTypeSymbol; 451var c2 = c1.GetTypeMembers("C2").Single() as INamedTypeSymbol; 452var c3 = c1.GetTypeMembers("C3").Single() as INamedTypeSymbol; 517var c1 = n1.GetTypeMembers("C1").Single() as INamedTypeSymbol; 518var c2 = n1.GetTypeMembers("C2").Single() as INamedTypeSymbol; 519var e1 = n1.GetTypeMembers("E1").Single() as INamedTypeSymbol;
Symbols\Source\EventTests.cs (1)
324NamedTypeSymbol type01 = comp.SourceModule.GlobalNamespace.GetTypeMembers("C").Single();
Symbols\Source\FieldTests.cs (1)
201var type2 = type1.GetTypeMembers("S").Single();
Symbols\Source\MethodTests.cs (11)
1409var c = comp.GlobalNamespace.GetTypeMembers("C").Single(); 1566var test = comp.GlobalNamespace.GetTypeMembers("Test").Single() as NamedTypeSymbol; 1594var a = comp.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 1595var b = comp.GlobalNamespace.GetTypeMembers("B").Single() as NamedTypeSymbol; 1666var @interface = (NamedTypeSymbol)globalNamespace.GetTypeMembers("I").Single(); 1671var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("C").Single(); 1715var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("F").Single(); 1755var @interface = (NamedTypeSymbol)globalNamespace.GetTypeMembers("I").Single(); 1761var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("C").Single(); 1811var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("IC").Single(); 1856var @class = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("C").Single();
Symbols\Source\PropertyTests.cs (8)
392var type01 = global.GetTypeMembers("C").Single(); 393var type02 = type01.GetTypeMembers("S").Single(); 1749var @interface = (NamedTypeSymbol)globalNamespace.GetTypeMembers("I").Single(); 1754var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("C").Single(); 1783var @interface = (NamedTypeSymbol)globalNamespace.GetTypeMembers("I").Single(); 1788var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("C").Single(); 1826var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("C").Single(); 1956var @class = (NamedTypeSymbol)globalNamespace.GetTypeMembers("Test").Single();
Symbols\Source\SourcePlusMetadataTests.cs (6)
188var srcSym = compilation.GlobalNamespace.GetTypeMembers("BaseTypeSpecifierClass").Single(); 192var metaSym = comp2.GlobalNamespace.GetTypeMembers("BaseTypeSpecifierClass").First(); 204var srcSym = compilation.GlobalNamespace.GetTypeMembers("FooAttribute").Single(); 208var metaSym = comp2.GlobalNamespace.GetTypeMembers("FooAttribute").First(); 231var classC = compilation.GlobalNamespace.GetTypeMembers("Test").Single(); 236var metaType = comp2.GlobalNamespace.GetTypeMembers("Test").Single();
Symbols\SymbolErrorTests.cs (7)
1573var classA = comp.SourceModule.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 3144var ns = comp.SourceModule.GlobalNamespace.GetTypeMembers("A").Single() as NamedTypeSymbol; 16890var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 16915var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 16916var classC = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("C").Single(); 16950var classA = (NamedTypeSymbol)comp.GlobalNamespace.GetTypeMembers("A").Single(); 19374var derived = comp.SourceModule.GlobalNamespace.GetTypeMembers("Derived").Single();
Symbols\TypeTests.cs (17)
40var c = compilation.GlobalNamespace.GetTypeMembers("C")[0]; 62var aint1 = compilation.GlobalNamespace.GetTypeMembers("A1")[0].BaseType(); // A<int> 63var aint2 = compilation.GlobalNamespace.GetTypeMembers("A2")[0].BaseType(); // A<int> 89var s = global.GetTypeMembers("S").Single(); 541var classTest = globalNS.GetTypeMembers("A").Single() as NamedTypeSymbol; 589var classTest = globalNS.GetTypeMembers("A").Single() as NamedTypeSymbol; 905var classTest = globalNS.GetTypeMembers("Test").First(); 945NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("Test").Single() as NamedTypeSymbol; 967var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers("MyClass").First(); 981NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("MyClass").Single() as NamedTypeSymbol; 994NamedTypeSymbol testTypeSymbol = comp.Assembly.GlobalNamespace.GetTypeMembers("X").Single() as NamedTypeSymbol; 1017var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers("SubGenericClass").First(); 1504var topType = comp.SourceModule.GlobalNamespace.GetTypeMembers("NullableTest").FirstOrDefault(); 1611var topType = comp.SourceModule.GlobalNamespace.GetTypeMembers("S").FirstOrDefault(); 1612var nestedType = topType.GetTypeMembers("Nested").Single(); 1613var enumType = comp.SourceModule.GlobalNamespace.GetTypeMembers("E").Single(); 1804var Goo = compilation.GlobalNamespace.GetTypeMembers("Goo")[0];
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilingTestBase.cs (1)
26var method = (MethodSymbol)compilation.GlobalNamespace.GetTypeMembers(typeName).Single().GetMembers(methodName).Single();
Extensions.cs (1)
349return symbol.GetTypeMembers(name).Single();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (91)
Utilities\SymbolEquivalenceComparerTests.cs (91)
52var type = (ITypeSymbol)(await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 124var csharpType = (ITypeSymbol)(await csharpWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 125var vbType = (await vbWorkspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 194var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 195var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 196var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 197var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 245var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 246var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 247var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 248var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 284var typeC = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 285var typeD = (await workspace.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("D").Single(); 328var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 329var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 353var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 354var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 378var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 379var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 403var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 404var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 428var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 429var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 455var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 456var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 482var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 483var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 509var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 510var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 534var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 535var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 559var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 560var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 586var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 587var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 620var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 621var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 665var csharpType1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 666var vbType1 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 696var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 722var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 723var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 757var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 758var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 790var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 791var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 825var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 826var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 862var outerType1 = outer1.GetTypeMembers("Type").Single(); 863var outerType2 = outer2.GetTypeMembers("Type").Single(); 865var innerType1 = inner1.GetTypeMembers("Type").Single(); 866var innerType2 = inner2.GetTypeMembers("Type").Single(); 933var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 934var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 935var type2_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 936var type2_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 970var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 971var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type2").Single(); 995var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 996var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1020var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1021var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1051var outer = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Outer").Single(); 1052var other = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Other").Single(); 1053var type1_v1 = outer.GetTypeMembers("Type1").Single(); 1054var type1_v2 = other.GetTypeMembers("Type1").Single(); 1081var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1082var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("Type1").Single(); 1112var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1113var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1152var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1153var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1182var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1183var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1212var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1213var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1243var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1244var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1274var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1275var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1306var type1_v1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1307var type1_v2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("C").Single(); 1343var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1344var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1407var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1408var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1470var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1471var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1533var t1 = (await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1534var t2 = (await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetTypeMembers("T").Single(); 1887var type1 = compilation.GlobalNamespace.GetTypeMembers(typeName).Single();
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
280Private Function INamespaceOrTypeSymbol_GetTypeMembers(name As String) As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Semantics\NativeIntegerTests.vb (2)
24Dim type = comp.GlobalNamespace.GetTypeMembers("I").Single() 38type = comp.GlobalNamespace.GetTypeMembers("I").Single()
Semantics\OverloadResolution.vb (9)
101Dim TestClass1 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass1").Single() 138Dim base = c1.Assembly.GlobalNamespace.GetTypeMembers("Base").Single() 139Dim baseExt = c1.Assembly.GlobalNamespace.GetTypeMembers("BaseExt").Single() 141Dim derived = c1.Assembly.GlobalNamespace.GetTypeMembers("Derived").Single() 142Dim derivedExt = c1.Assembly.GlobalNamespace.GetTypeMembers("DerivedExt").Single() 143Dim ext = c1.Assembly.GlobalNamespace.GetTypeMembers("Ext").Single() 144Dim ext1 = c1.Assembly.GlobalNamespace.GetTypeMembers("Ext1").Single() 182Dim TestClass2 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass2").Single() 3067Dim TestClass1 = c1.Assembly.GlobalNamespace.GetTypeMembers("TestClass1").Single()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (35)
DocumentationComments\TypeDocumentationCommentTests.vb (1)
68_compilation.GlobalNamespace.GetTypeMembers("Color").Single().GetDocumentationCommentId())
SymbolDisplay\SymbolDisplayTests.vb (2)
5356Dim type = [global].GetTypeMembers("C").Single() 5360Dim [delegate] = [global].GetTypeMembers("D").Single()
SymbolsTests\CompilationCreationTests.vb (3)
90Dim c107 As TypeSymbol = c1.GlobalNamespace.GetTypeMembers("C107").Single() 116Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType) 1963Dim typeC5 = c5.[Assembly].GlobalNamespace.GetTypeMembers("C5").Single()
SymbolsTests\Metadata\PE\NoPia.vb (4)
941Dim varI5 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I5").Single() 943Dim varI6 = varC_Pia5.SourceModule.GlobalNamespace.GetTypeMembers("I6").Single() 949Dim varI7 = varC_Library2.SourceModule.GlobalNamespace.GetTypeMembers("I7").Single() 958Dim varI1 = varC_Pia1.SourceModule.GlobalNamespace.GetTypeMembers("I1").Single()
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (22)
32Dim classLocalType1 As NamedTypeSymbol = localConsumer1.SourceModule.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 47Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 63Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 79Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 101Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 116Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 139Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 154Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 170Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 186Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 202Dim classLocalType1 As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 218Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 234Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 250Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 266Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 280Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 294Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 307Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 323Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 340Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("NoPIAGenerics").[Single]() 366Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("DrivedClass").[Single]() 390Dim classLocalType As NamedTypeSymbol = localConsumer.GlobalNamespace.GetTypeMembers("Interface1Impl2").[Single]()
SymbolsTests\Retargeting\RetargetCustomModifiers.vb (2)
36Dim modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single() 115Dim modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single()
SymbolsTests\Source\TypeTests.vb (1)
691Dim classTest = DirectCast(globalNS.GetTypeMembers("Test").First(), NamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SymbolKeyTests.cs (2)
419var b = ((IMethodSymbol)compilation1.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single()).Parameters[1]; 443var b = ((IMethodSymbol)compilation1.GlobalNamespace.GetTypeMembers("C").Single().GetMembers("M").Single()).Parameters[1];