4 implementations of GetMembers
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
39IEnumerable<INamespaceOrTypeSymbol> INamespaceSymbol.GetMembers(string name)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamespaceSymbol.cs (1)
49IEnumerable<INamespaceOrTypeSymbol> INamespaceSymbol.GetMembers(string name)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceSymbol.vb (1)
543Private Function INamespaceSymbol_GetMembers(name As String) As IEnumerable(Of INamespaceOrTypeSymbol) Implements INamespaceSymbol.GetMembers
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceSymbol.cs (1)
39IEnumerable<INamespaceOrTypeSymbol> INamespaceSymbol.GetMembers(string name)
368 references to GetMembers
Microsoft.CodeAnalysis (1)
Symbols\ISymbolExtensions.cs (1)
95foreach (var sym in container.GetMembers(name))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
103foreach (var member in namespaceSymbol.GetMembers(metadataName))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
SymbolKey\SymbolKeyCompilationsTests.cs (7)
130var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 157var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 185var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 463var namespace1 = comp1.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 466var namespace2 = comp2.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 571var namespace1 = comp1.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol; 574var namespace2 = comp2.SourceModule.GlobalNamespace.GetMembers("NS").Single() as INamespaceSymbol;
SymbolKey\SymbolKeyTests.cs (3)
47var type = compilation.GlobalNamespace.GetMembers("C1").Single(); 83var members = compilation.GlobalNamespace.GetMembers("C").ToArray(); 122var type = compilation.GlobalNamespace.GetMembers("C").Single().GetMembers("Inner").Single();
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
415var classC = compilation.SourceModule.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (3)
6311INamedTypeSymbol vbType = (INamedTypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single(); 6328var vbType = (ITypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single(); 6581ITypeSymbol vbType = (ITypeSymbol)vbComp.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Synthesized.cs (1)
148var s = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("S").Single();
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (2)
179var system = compilation.GlobalNamespace.GetMembers(nameof(System)).OfType<INamespaceSymbol>().FirstOrDefault(); 180var systemCollections = system?.GetMembers(nameof(System.Collections)).OfType<INamespaceSymbol>().FirstOrDefault();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
507return c.GlobalNamespace.GetMembers(name).Single() as INamedTypeSymbol;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\AccessCheckTests.cs (13)
740INamedTypeSymbol classA = globalNS.GetMembers("A").Single() as INamedTypeSymbol; 744INamedTypeSymbol classADerived = globalNS.GetMembers("ADerived").Single() as INamedTypeSymbol; 745INamedTypeSymbol classADerived2 = globalNS.GetMembers("ADerived2").Single() as INamedTypeSymbol; 746INamedTypeSymbol classB = globalNS.GetMembers("B").Single() as INamedTypeSymbol; 860INamedTypeSymbol classOther = otherGlobalNS.GetMembers("Other").Single() as INamedTypeSymbol; 901INamedTypeSymbol Outer = globalNS.GetMembers("Outer").Single() as INamedTypeSymbol; 908INamedTypeSymbol Other = globalNS.GetMembers("Other").Single() as INamedTypeSymbol; 909INamedTypeSymbol Private = globalNS.GetMembers("Private").Single() as INamedTypeSymbol; 912INamedTypeSymbol Derived = globalNS.GetMembers("Derived").Single() as INamedTypeSymbol; 959var classC = compilation.GlobalNamespace.GetMembers("C").OfType<INamedTypeSymbol>().Single(); 960var classQ = compilation.GlobalNamespace.GetMembers("Q").OfType<INamedTypeSymbol>().Single(); 969var c2 = ((Compilation)c).GlobalNamespace.GetMembers("C").OfType<INamedTypeSymbol>().Single(); 973classQ = ((Compilation)c).GlobalNamespace.GetMembers("Q").OfType<INamedTypeSymbol>().Single();
Semantics\FieldInitializerBindingTests.cs (1)
247var typeSymbol = (SourceNamedTypeSymbol)compilation.GlobalNamespace.GetMembers("C").Single();
Semantics\ScriptSemanticsTests.cs (1)
374var goo = global.GetMembers("Goo").Single() as NamespaceSymbol;
Semantics\SemanticErrorTests.cs (1)
3252var type1 = comp.SourceModule.GlobalNamespace.GetMembers("MyClass").Single() as NamedTypeSymbol;
Semantics\SynthesizedStaticConstructorTests.cs (1)
291var typeSymbol = (SourceNamedTypeSymbol)compilation.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (249)
Compilation\ForEachStatementInfoTests.cs (2)
37var e1 = (ITypeSymbol)c.GlobalNamespace.GetMembers("E1").Single(); 44var e2 = (ITypeSymbol)c.GlobalNamespace.GetMembers("E2").Single();
Compilation\SemanticModelAPITests.cs (3)
825var bInner = (comp.GlobalNamespace.GetMembers("N").Single() as INamespaceSymbol).GetTypeMembers("B", 0).Single(); 1276Assert.Equal(0, comp2.GlobalNamespace.GetMembers("X").Length); //Doesn't contain the alias target namespace as a child. 4377var classA = (NamedTypeSymbol)globalNs.GetMembers("A").Single();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (10)
2787var n1 = globalNS.GetMembers("NS").First() as INamespaceSymbol; 2937var compSym = compilation.GlobalNamespace.GetMembers("System").First() as INamespaceSymbol; 2971var sym1 = globalNS.GetMembers("CGoo").First() as INamedTypeSymbol; 3019var ns1 = globalNS.GetMembers("NS").Single() as INamespaceSymbol; 3020var srcSym = ns1.GetMembers("A").Single() as INamedTypeSymbol; 3046var ns1 = globalNS.GetMembers("NS").Single() as NamespaceSymbol; 3076var ns1 = globalNS.GetMembers("NS").Single() as INamespaceSymbol; 3112var ns1 = nsg.GetMembers("NS1").Single() as INamespaceSymbol; 3113var ns2 = ns1.GetMembers("NS2").Single() as INamespaceSymbol; 3756var memSymbol = compilation.GlobalNamespace.GetMembers("System").Single();
DocumentationComments\ConstructorDocumentationCommentTests.cs (1)
41_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\CrefTests.cs (1)
1248var expectedSymbol = compilation.GlobalNamespace.GetMembers("B").OfType<SourceNamedTypeSymbol>().Single();
DocumentationComments\DestructorDocumentationCommentTests.cs (1)
34_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\FieldDocumentationCommentTests.cs (1)
58_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\IncludeTests.cs (2)
53var acmeNamespace = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("Acme").Single(); 115var acmeNamespace = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\MethodDocumentationCommentTests.cs (1)
71_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\PropertyDocumentationCommentTests.cs (1)
35_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
DocumentationComments\TypeDocumentationCommentTests.cs (1)
46_acmeNamespace = (NamespaceSymbol)_compilation.GlobalNamespace.GetMembers("Acme").Single();
SymbolDisplay\SymbolDisplayTests.cs (2)
4674var a = (ITypeSymbol)comp.GlobalNamespace.GetMembers("A").Single(); 4866var outer = (INamedTypeSymbol)vbComp.GlobalNamespace.GetMembers("Outer").Single();
Symbols\AssemblyAndNamespaceTests.cs (7)
74var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 126var ns = global.GetMembers("N1").Single() as NamespaceSymbol; 169var ns = global.GetMembers("NS").Single() as NamespaceSymbol; 214var ns = global.GetMembers("N1").Single() as NamespaceSymbol; 262var ns = global.GetMembers("N1").Single() as NamespaceSymbol; 303var ns = global.GetMembers("N1").Single() as NamespaceSymbol; 335var ns1 = globalNS.GetMembers("NS").Single() as NamespaceSymbol;
Symbols\ImplicitClassTests.cs (2)
30var n = ((NamespaceSymbol)c.Assembly.GlobalNamespace.GetMembers("N").Single()); 43n = ((NamespaceSymbol)c2.GlobalNamespace.GetMembers("N").Single());
Symbols\InterfaceImplementationTests.cs (57)
51var @base = (NamedTypeSymbol)global.GetMembers("Base").Single(); 85var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 122var baseInterface = (NamedTypeSymbol)global.GetMembers("BaseInterface").Single(); 125var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 128var @class = (NamedTypeSymbol)global.GetMembers("Class").Single(); 178var baseInterface = (NamedTypeSymbol)global.GetMembers("BaseInterface").Single(); 181var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 184var @class = (NamedTypeSymbol)global.GetMembers("Class").Single(); 245var baseInterface1 = (NamedTypeSymbol)global.GetMembers("BaseInterface1").Single(); 248var baseInterface2 = (NamedTypeSymbol)global.GetMembers("BaseInterface2").Single(); 251var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 254var @class = (NamedTypeSymbol)global.GetMembers("Class").Single(); 317var baseInterface1 = (NamedTypeSymbol)global.GetMembers("BaseInterface1").Single(); 320var baseInterface2 = (NamedTypeSymbol)global.GetMembers("BaseInterface2").Single(); 323var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 326var @class = (NamedTypeSymbol)global.GetMembers("Class").Single(); 374var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 377var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 380var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 431var baseInterface = (NamedTypeSymbol)global.GetMembers("BaseInterface").Single(); 434var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 437var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 451var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 459var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 507var baseInterface1 = (NamedTypeSymbol)global.GetMembers("BaseInterface1").Single(); 510var baseInterface2 = (NamedTypeSymbol)global.GetMembers("BaseInterface2").Single(); 513var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 516var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 524var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 535var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 575var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 578var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 584var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 588var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 625var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 628var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 633var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 637var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 676var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 679var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 686var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 694var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 737var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 741var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 757var class1 = (NamedTypeSymbol)global.GetMembers("Class1").Single(); 775var class2 = (NamedTypeSymbol)global.GetMembers("Class2").Single(); 827var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 830var nonDeclaring1 = (NamedTypeSymbol)global.GetMembers("NonDeclaringClass1").Single(); 835var declaring1 = (NamedTypeSymbol)global.GetMembers("DeclaringClass1").Single(); 839var nonDeclaring2 = (NamedTypeSymbol)global.GetMembers("NonDeclaringClass2").Single(); 845var declaring2 = (NamedTypeSymbol)global.GetMembers("DeclaringClass2").Single(); 911var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 917var baseClass = (NamedTypeSymbol)global.GetMembers("Base").Single(); 930var derivedClass = (SourceNamedTypeSymbol)global.GetMembers("Derived").Single(); 980var @interface = (NamedTypeSymbol)global.GetMembers("Interface").Single(); 986var baseClass = (NamedTypeSymbol)global.GetMembers("Base").Single(); 999var derivedClass = (SourceNamedTypeSymbol)global.GetMembers("Derived").Single();
Symbols\OverriddenOrHiddenMembersTests.cs (21)
245var baseInterface1 = (NamedTypeSymbol)global.GetMembers("BaseInterface1").Single(); 246var baseInterface2 = (NamedTypeSymbol)global.GetMembers("BaseInterface2").Single(); 247var derivedInterface1 = (NamedTypeSymbol)global.GetMembers("DerivedInterface1").Single(); 248var derivedInterface2 = (NamedTypeSymbol)global.GetMembers("DerivedInterface2").Single(); 336var baseInterface1 = (NamedTypeSymbol)global.GetMembers("BaseInterface1").Single(); 337var baseInterface2 = (NamedTypeSymbol)global.GetMembers("BaseInterface2").Single(); 338var derivedInterface1 = (NamedTypeSymbol)global.GetMembers("DerivedInterface1").Single(); 339var derivedInterface2 = (NamedTypeSymbol)global.GetMembers("DerivedInterface2").Single(); 417var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 418var derivedClass = (NamedTypeSymbol)global.GetMembers("DerivedClass").Single(); 468var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 469var derivedClass = (NamedTypeSymbol)global.GetMembers("DerivedClass").Single(); 528var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 529var derivedClass = (NamedTypeSymbol)global.GetMembers("DerivedClass").Single(); 606var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 607var derivedClass = (NamedTypeSymbol)global.GetMembers("DerivedClass").Single(); 666var baseClass = (NamedTypeSymbol)global.GetMembers("BaseClass").Single(); 667var derivedClass = (NamedTypeSymbol)global.GetMembers("DerivedClass").Single(); 746var definingClass = (NamedTypeSymbol)global.GetMembers("DefiningClass").Single(); 747var hidingClass = (NamedTypeSymbol)global.GetMembers("HidingClass").Single(); 748var overridingClass = (NamedTypeSymbol)global.GetMembers("OverridingClass").Single();
Symbols\Source\AccessTests.cs (4)
30var a = global.GetMembers("A").Single() as NamespaceSymbol; 47var a = global.GetMembers("A").Single() as NamespaceSymbol; 73var a = global.GetMembers("A").Single() as NamespaceSymbol; 96var a = global.GetMembers("A").Single() as NamespaceSymbol;
Symbols\Source\BaseClassTests.cs (12)
1254var n = global.GetMembers("N").OfType<NamespaceSymbol>().Single(); 1279var n1 = global.GetMembers("N1").Single() as NamespaceSymbol; 1280var n2 = global.GetMembers("N2").Single() as NamespaceSymbol; 1301var n1 = global.GetMembers("N1").Single() as NamespaceSymbol; 1302var n2 = global.GetMembers("N2").Single() as NamespaceSymbol; 1320var d = global.GetMembers("D").Single() as NamedTypeSymbol; 1380var n1 = global.GetMembers("N1").Single() as NamespaceSymbol; 1381var n2 = global.GetMembers("N2").Single() as NamespaceSymbol; 1440NamespaceSymbol nif = (NamespaceSymbol)comp.SourceModule.GlobalNamespace.GetMembers("if").Single(); 1465NamespaceSymbol nif = (NamespaceSymbol)comp.SourceModule.GlobalNamespace.GetMembers("if").Single(); 1523var classB = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("B")[0]; 1539var classB = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("B")[0];
Symbols\Source\DeclaringSyntaxNodeTests.cs (8)
190var n1 = global.GetMembers("N1").Single() as INamespaceSymbol; 234var n1 = global.GetMembers("N1").Single() as INamespaceSymbol; 409var system = global.GetMembers("System").Single() as INamespaceSymbol; 410var n1 = global.GetMembers("N1").Single() as INamespaceSymbol; 411var n2 = n1.GetMembers("N2").Single() as INamespaceSymbol; 412var n3 = n2.GetMembers("N3").Single() as INamespaceSymbol; 449var n1 = global.GetMembers("N1").Single() as INamespaceSymbol; 516var n1 = global.GetMembers("N1").Single() as INamespaceSymbol;
Symbols\Source\DelegateTests.cs (9)
202var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol; 228NamedTypeSymbol dout = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("out").Single(); 338NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 392NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 423NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 454NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 488NamedTypeSymbol d = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("D").Single(); 780var d = global.GetMembers("D")[0] as NamedTypeSymbol; 797var d = global.GetMembers("D")[0] as NamedTypeSymbol;
Symbols\Source\EnumTests.cs (1)
757var classEnum = comp.SourceModule.GlobalNamespace.GetMembers("EnumPartial").Single() as NamedTypeSymbol;
Symbols\Source\EventTests.cs (1)
59NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single();
Symbols\Source\FieldTests.cs (2)
235NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 255NamedTypeSymbol type1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C").Single();
Symbols\Source\LocationTests.cs (1)
28var n = global.GetMembers("N").Single() as NamespaceSymbol;
Symbols\Source\MethodTests.cs (15)
510var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 586var ns = comp.GlobalNamespace.GetMembers("N1").Single() as NamespaceSymbol; 779var ns = comp.GlobalNamespace.GetMembers("N1").Single() as NamespaceSymbol; 958var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1068var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1165var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1259var ns = comp.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1326var derivedClass = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("DerivedClass")[0]; 1354var classB = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("B").Single(); 1372var classC = (NamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").Single(); 1464var ns = comp.GlobalNamespace.GetMembers("N2").Single() as NamespaceSymbol; 1502var n2 = comp.GlobalNamespace.GetMembers("N2").Single() as NamespaceSymbol; 1618NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 1708var systemNamespace = (NamespaceSymbol)globalNamespace.GetMembers("System").Single(); 1804var systemNamespace = (NamespaceSymbol)globalNamespace.GetMembers("Namespace").Single();
Symbols\Source\PropertyTests.cs (5)
449NamedTypeSymbol c1 = (NamedTypeSymbol)comp.SourceModule.GlobalNamespace.GetMembers("C1").Single(); 628var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("NoAccessors").Single(); 712var type = (PENamedTypeSymbol)verifier.Compilation.GlobalNamespace.GetMembers("Signatures").Single().GetSymbol(); 790var type = (PENamedTypeSymbol)compilation.GlobalNamespace.GetMembers("FamilyAssembly").Single(); 1819var @namespace = (NamespaceSymbol)globalNamespace.GetMembers("N").Single();
Symbols\Source\SourcePlusMetadataTests.cs (2)
82var system = global.GetMembers("System").Single() as NamespaceSymbol; 138var ns = (NamespaceSymbol)compilation.GlobalNamespace.GetMembers("NS").Single();
Symbols\SymbolErrorTests.cs (61)
1472var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1498var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1517var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1535var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 1548var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2335var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2457var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2556var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 2585var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3088var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3364var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3578var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3600var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3636var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3658var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3705var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3733var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3759var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3784var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 3948var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 4376var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 4756var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5414var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5556var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 5599var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 7462var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8083var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8202var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8235var nsNamespace = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 8668var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9164var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9194var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9214var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9238var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9261var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9287var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9317var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 9335var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 11028var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 11456var ns = comp.SourceModule.GlobalNamespace.GetMembers("x").Single() as NamespaceSymbol; 12346var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12522var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12676var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 12725var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13054var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13084var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13114var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13475var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 13523var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 14560var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 14682var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 15097var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 15143var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol; 16951var ns1 = (NamespaceSymbol)comp.GlobalNamespace.GetMembers("N1").Single(); 16952var ns2 = (NamespaceSymbol)comp.GlobalNamespace.GetMembers("N2").Single(); 17650var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 17687var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 17930var ns = comp.SourceModule.GlobalNamespace.GetMembers("SA").Single() as NamespaceSymbol; 19407var b = comp.SourceModule.GlobalNamespace.GetMembers("B").Single() as NamespaceSymbol; 19422var b = comp.SourceModule.GlobalNamespace.GetMembers("B").Single() as NamespaceSymbol; 19453var ns = comp.SourceModule.GlobalNamespace.GetMembers("NS").Single() as NamespaceSymbol;
Symbols\TypeTests.cs (15)
126var ns = global.GetMembers("NS").Single() as NamespaceSymbol; 205var ns = global.GetMembers("NS").Single() as NamespaceSymbol; 273var ns = global.GetMembers("NS").Single() as NamespaceSymbol; 348var ns = global.GetMembers("NS").Single() as NamespaceSymbol; 850var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol; 1062var ns = global.GetMembers("Convert").Single() as NamespaceSymbol; 1080var ns1 = global.GetMembers("NS1").Single() as NamespaceSymbol; 1102var ns = global.GetMembers("Collections").Single() as NamespaceSymbol; 1120var ns1 = global.GetMembers("NS").Single() as NamespaceSymbol; 1181var d = global.GetMembers("D").Single() as NamedTypeSymbol; 1200var system = global.GetMembers("System").Single() as NamespaceSymbol; 1421var gen1Class = ((NamedTypeSymbol)globalNS.GetMembers("Gen1").First()); 1424var nonGenClass = ((NamedTypeSymbol)globalNS.GetMembers("NonGen").First()); 1427var system = ((NamespaceSymbol)globalNS.GetMembers("System").First()); 1477var namespaceNS = comp.GlobalNamespace.GetMembers("NS").First() as NamespaceOrTypeSymbol;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
861foreach (var sym in ns.GetMembers(name))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (33)
CodeGeneration\SymbolEditorTests.cs (6)
51return compilation.GlobalNamespace.GetMembers(name); 193var symbolA = comp.GlobalNamespace.GetMembers("A").First(); 194var symbolB = comp.GlobalNamespace.GetMembers("B").First(); 239var symbolA = comp.GlobalNamespace.GetMembers("A").First(); 240var symbolB = comp.GlobalNamespace.GetMembers("B").First(); 317var symbol = comp.GlobalNamespace.GetMembers("C").First();
CodeGeneration\SyntaxGeneratorTests.cs (27)
233var typeC = compilation.GlobalNamespace.GetMembers("C").First() as INamedTypeSymbol; 1669var symbol = compilation.GlobalNamespace.GetMembers("I").Single(); 3782var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 3963var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 3981var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4002var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4020var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4038var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4056var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4074var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4092var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4110var symbolC = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("C").First(); 4129var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4276var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4306var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4398var symbolC = comp.GlobalNamespace.GetMembers("C").First(); 4595var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4610var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4633var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4648var symbolR = (INamedTypeSymbol)comp.GlobalNamespace.GetMembers("R").First(); 4671var symbol = comp.GlobalNamespace.GetMembers("C").First(); 4691var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("M").First(); 4709var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("X").First(); 4726var symbol = comp.GlobalNamespace.GetMembers("C").First().GetMembers("MyEvent").First(); 4751var symbol = comp.GlobalNamespace.GetMembers("C2").First().GetMembers("MyEvent").First(); 4910var symbol = compilation.GlobalNamespace.GetMembers("S").Single(); 4966var symbol = compilation.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Utilities\SymbolEquivalenceComparerTests.cs (11)
856var outer1 = (INamespaceSymbol)(await workspace1.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 857var outer2 = (INamespaceSymbol)(await workspace2.CurrentSolution.Projects.Single().GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").Single(); 859var inner1 = (INamespaceSymbol)outer1.GetMembers("Inner").Single(); 860var inner2 = (INamespaceSymbol)outer2.GetMembers("Inner").Single(); 1746var ta1 = (ITypeSymbol)a1.GlobalNamespace.GetMembers("T").Single(); 1747var ta2 = (ITypeSymbol)a2.GlobalNamespace.GetMembers("T").Single(); 1748var tb1 = (ITypeSymbol)b1.GlobalNamespace.GetMembers("T").Single(); 1749var tb2 = (ITypeSymbol)b2.GlobalNamespace.GetMembers("T").Single(); 1750var tb3 = (ITypeSymbol)b3.GlobalNamespace.GetMembers("T").Single(); 1835var type1 = (ITypeSymbol)c1.GlobalNamespace.GetMembers("C").Single(); 1836var type2 = (ITypeSymbol)c2.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Workspaces\TryFindSourceDefinitionTests.vb (5)
142Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 179Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 216Dim member = compilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single().GetMembers("M").Single() 250Dim originalClass = retargetedCompilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single() 252Dim retargetedClass = retargetingCompilation.GlobalNamespace.GetMembers("N").Single().GetTypeMembers("CSClass").Single()
Microsoft.CodeAnalysis.Features (1)
FullyQualify\AbstractFullyQualifyService.cs (1)
278var types = ns.GetMembers(rightName);
Microsoft.CodeAnalysis.UnitTests (7)
GivesAccessTo.cs (4)
45var CS = csc.GlobalNamespace.GetMembers("CS").First() as INamedTypeSymbol; 48var CS2 = csc2.GlobalNamespace.GetMembers("CS2").First() as INamedTypeSymbol; 51var VB = vbc.GlobalNamespace.GetMembers("VB")[0] as INamedTypeSymbol; 54var VB2 = vbc2.GlobalNamespace.GetMembers("VB2")[0] as INamedTypeSymbol;
IsSymbolAccessibleWithinTests.cs (2)
29var Ac = csc.GlobalNamespace.GetMembers("A").First() as INamedTypeSymbol; 32var Av = vbc.GlobalNamespace.GetMembers("A").First() as INamedTypeSymbol;
MetadataReferences\MetadataReferenceTests.cs (1)
575var c = (ITypeSymbol)comp.GlobalNamespace.GetMembers("C").Single();
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceSymbol.vb (1)
543Private Function INamespaceSymbol_GetMembers(name As String) As IEnumerable(Of INamespaceOrTypeSymbol) Implements INamespaceSymbol.GetMembers
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
307Dim class1 = c1.GlobalNamespace.GetMembers("Class1")
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
InteractiveSessionTests.vb (1)
156Return DirectCast(c.GlobalNamespace.GetMembers(name).Single(), INamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\Conversions.vb (2)
248Dim typeCodeType = c1.GlobalNamespace.GetMembers("System").OfType(Of NamespaceSymbol)().Single().GetTypeMembers("TypeCode").Single() 1100Dim typeCodeType = c1.GlobalNamespace.GetMembers("System").OfType(Of NamespaceSymbol)().Single().GetTypeMembers("TypeCode").Single()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
DocumentationComments\ConstructorDocumentationCommentTests.vb (1)
34_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\EventDocumentationCommentTests.vb (1)
44_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\FieldDocumentationCommentTests.vb (1)
50_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\MethodDocumentationCommentTests.vb (1)
89_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\PropertyDocumentationCommentTests.vb (1)
47_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
DocumentationComments\TypeDocumentationCommentTests.vb (1)
61_acmeNamespace = DirectCast(_compilation.GlobalNamespace.GetMembers("Acme").Single(), NamespaceSymbol)
SymbolsTests\AssemblyAndNamespaceTests.vb (2)
439Dim ns = DirectCast(globalNS.GetMembers("N1").Single(), NamespaceSymbol) 491Dim ns = DirectCast(globalNS.GetMembers("N1").Single(), NamespaceSymbol)
SymbolsTests\Source\PropertyTests.vb (2)
4702Dim type = DirectCast(compilation.GlobalNamespace.GetMembers("FamilyAssembly").Single(), PENamedTypeSymbol) 5588Dim type = DirectCast(compilation.GlobalNamespace.GetMembers("Signatures").Single(), PENamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
212Dim typeC = DirectCast(compilation.GlobalNamespace.GetMembers("C").First, INamedTypeSymbol) 1588Dim symbol = compilation.GlobalNamespace.GetMembers("I").Single() 3469Dim symbolC = DirectCast(comp.GlobalNamespace.GetMembers("C").First(), INamedTypeSymbol) 3727Dim symbolC = DirectCast(comp.GlobalNamespace.GetMembers("C").First(), INamedTypeSymbol)
Microsoft.CodeAnalysis.Workspaces (4)
Rename\ConflictEngine\ConflictResolver.cs (1)
267var otherThingsNamedTheSame = ((INamespaceSymbol)renamedSymbol.ContainingSymbol).GetMembers(renamedSymbol.Name)
Shared\Extensions\INamespaceSymbolExtensions.cs (2)
119var matchingChildren = current.GetMembers(namespaceName).OfType<INamespaceSymbol>(); 142var members = namespaceSymbol.GetMembers(name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
103foreach (var member in namespaceSymbol.GetMembers(metadataName))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
FindAllDeclarationsTests.cs (1)
185var expectedSymbol = (await solution.GetProject(submission0Id).GetCompilationAsync()).GlobalNamespace.GetMembers("Outer").SingleOrDefault().GetMembers("Inner").SingleOrDefault();