6 implementations of GetTypeMembers
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
36public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers()
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamespaceOrTypeSymbol.cs (1)
23ImmutableArray<INamedTypeSymbol> INamespaceOrTypeSymbol.GetTypeMembers()
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedNamespaceOrTypeSymbol.cs (1)
26public abstract ImmutableArray<INamedTypeSymbol> GetTypeMembers();
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
111public override ImmutableArray<INamedTypeSymbol> GetTypeMembers()
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
276Private Function INamespaceOrTypeSymbol_GetTypeMembers() As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamespaceOrTypeSymbol.cs (1)
36public virtual ImmutableArray<INamedTypeSymbol> GetTypeMembers()
37 references to GetTypeMembers
ILLink.RoslynAnalyzer (2)
DataFlow\DynamicallyAccessedMembersBinder.cs (2)
230 foreach (var nestedType in type.GetTypeMembers ().OfType<ITypeSymbol> ()) { 383 foreach (var nestedType in type.GetTypeMembers ().OfType<ITypeSymbol> ()) {
Microsoft.AspNetCore.Analyzers (1)
ConfigureMethodVisitor.cs (1)
34foreach (var type in symbol.GetTypeMembers())
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
106stack.AddRange(namedType.GetTypeMembers());
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
33namedType.GetTypeMembers().SelectAsArray(t => t.ToCodeGenerationSymbol()),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
112foreach (var type in ns.GetTypeMembers())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
299Assert.Empty(nativeIntegerType.GetTypeMembers());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
DeclarationTests.cs (2)
292var type = compilation.Assembly.GlobalNamespace.GetTypeMembers().First(); 339var type = compilation.Assembly.GlobalNamespace.GetTypeMembers().First();
Symbols\ErrorTypeSymbolTests.cs (1)
68var allTypes = compilation.GlobalNamespace.GetTypeMembers();
Symbols\IndexerTests.cs (2)
2166var loopResult = Parallel.ForEach(compilation.GlobalNamespace.GetTypeMembers(), type => 2197var loopResult = Parallel.ForEach(compilation.GlobalNamespace.GetTypeMembers(), type =>
Symbols\Source\DeclaringSyntaxNodeTests.cs (2)
195var types = n1.GetTypeMembers(); 208foreach (ISymbol s in c1.GetTypeMembers())
Symbols\Source\MethodTests.cs (1)
1427NamedTypeSymbol nts = comp.Assembly.GlobalNamespace.GetTypeMembers()[0];
Symbols\TypeTests.cs (1)
927var typeSym = comp.Assembly.GlobalNamespace.GetTypeMembers().First();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
112foreach (var type in ns.GetTypeMembers())
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (2)
101namedType.GetTypeMembers().Any(static (m, context) => IsValidForTaskLikeTypeOnlyContext(m, context), context); 123return namedType.GetTypeMembers().Any(IsValidForGenericConstraintContext);
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
256var types = symbol.GetTypeMembers();
Debugging\AbstractBreakpointResolver.cs (1)
296INamedTypeSymbol typeSymbol => typeSymbol.GetTypeMembers().SelectMany(GetTypeMembersRecursive).Concat(typeSymbol),
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1150foreach (var type in context.Compilation.GlobalNamespace.GetTypeMembers())
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamespaceOrTypeSymbol.vb (1)
276Private Function INamespaceOrTypeSymbol_GetTypeMembers() As ImmutableArray(Of INamedTypeSymbol) Implements INamespaceOrTypeSymbol.GetTypeMembers
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\OverridesTests.vb (1)
6726For Each namedType In compilation.SourceModule.GlobalNamespace.GetTypeMembers()
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
31var associatedNamedTypes = symbol.ContainingType.GetTypeMembers()
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
213foreach (var childType in namedTypeSymbol.GetTypeMembers())
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
75stack.AddRange(child.GetTypeMembers());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
106stack.AddRange(namedType.GetTypeMembers());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
33namedType.GetTypeMembers().SelectAsArray(t => t.ToCodeGenerationSymbol()),
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SymbolKeyTests.cs (3)
762var inner = constructed.GetTypeMembers().Single(); 784var a_b = a.GetTypeMembers().Single(); 792var a_string_b = a_string.GetTypeMembers().Single();
Microsoft.VisualStudio.LanguageServices (2)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
539foreach (var typeMember in namespaceOrTypeSymbol.GetTypeMembers()) 552var typeMembers = namespaceOrTypeSymbol.GetTypeMembers();
System.Private.CoreLib.Generators (2)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (2)
88foreach (var typeSymbol in type.GetTypeMembers()) 100foreach (var typeSymbol in namespaceSymbol.GetTypeMembers())
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
87type = namedType = containingType.GetTypeMembers().First(t => t.Name == namedType.Name && t.Arity == namedType.Arity);