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