39 references to TypeDefinitions
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
231foreach (var typeDefHandle in module.MetadataReader.TypeDefinitions)
MetadataReader\MetadataReaderExtensions.cs (1)
179foreach (TypeDefinitionHandle handle in reader.TypeDefinitions)
MetadataReader\PEModule.cs (2)
635foreach (var typeDef in MetadataReader.TypeDefinitions) 2642new int[(MetadataReader.TypeDefinitions.Count + 32) / 32],
Microsoft.CodeAnalysis.CSharp (1)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
118foreach (var handle in reader.TypeDefinitions)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncIteratorTests.cs (2)
4215var types = metadataReader.TypeDefinitions.Select(t => metadataReader.GetString(metadataReader.GetTypeDefinition(t).Name)); 4216var type = metadataReader.TypeDefinitions.Single(t => metadataReader.GetString(metadataReader.GetTypeDefinition(t).Name) == methodName);
CodeGen\DestructorTests.cs (1)
774var pairA = peFileReader.TypeDefinitions.AsEnumerable().
Emit\CompilationEmitTests.cs (1)
5075foreach (var handle in peReader.TypeDefinitions)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
6182var newTypeDefHandle = reader.TypeDefinitions.Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Attributes\AttributeTests_NativeInteger.cs (1)
1599return reader.GetTypeDefinition(reader.TypeDefinitions.Single(h => reader.StringComparer.Equals(reader.GetTypeDefinition(h).Name, name)));
Attributes\AttributeTests_Nullable.cs (3)
191_ = reader.TypeDefinitions.Single(h => reader.StringComparer.Equals(reader.GetTypeDefinition(h).Name, name)); 195Assert.False(reader.TypeDefinitions.Any(h => reader.StringComparer.Equals(reader.GetTypeDefinition(h).Name, name))); 5408return reader.GetTypeDefinition(reader.TypeDefinitions.Single(h => reader.StringComparer.Equals(reader.GetTypeDefinition(h).Name, name)));
Attributes\AttributeTests_Tuples.cs (2)
893foreach (var typeHandle in reader.TypeDefinitions) 990foreach (var typeHandle in reader.TypeDefinitions)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
44foreach (var typeHandle in metadataReader.TypeDefinitions) 3470foreach (var typeHandle in metadataReader.TypeDefinitions) 3553foreach (var typeHandle in metadataReader.TypeDefinitions) 4713foreach (var typeDef in metadataReader.TypeDefinitions) 4822foreach (var typeDef in metadataReader.TypeDefinitions) 10701foreach (var typeHandle in peReader.TypeDefinitions)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
MetadataResolver.cs (1)
57foreach (var typeHandle in _reader.TypeDefinitions)
Microsoft.CodeAnalysis.Test.Utilities (5)
CompilationVerifier.cs (1)
239foreach (var typeDefHandle in metadataReader.TypeDefinitions)
Metadata\MetadataReaderUtils.cs (3)
119return reader.TypeDefinitions.Select(handle => reader.GetTypeDefinition(handle).Name).ToArray(); 124return reader.TypeDefinitions.Select(handle => 470AssertEx.SetEqual(metadataReader.TypeDefinitions.Select(t => metadataReader.Dump(t)), types);
Metadata\MetadataValidation.cs (1)
141foreach (var typeDefHandle in metadataReader.TypeDefinitions)
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
123For Each handle In reader.TypeDefinitions
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Emit\CompilationEmitTests.vb (1)
2590For Each typeDef In metadataReader.TypeDefinitions
Emit\EditAndContinue\EditAndContinueTests.vb (2)
1940Dim baseTypeCount = reader0.TypeDefinitions.Count 1978Dim newTypeDefHandle = reader.TypeDefinitions.Single()
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
105foreach (var typeDefinationHandle in reader.TypeDefinitions)
Microsoft.DotNet.PackageTesting (1)
VerifyTypes.cs (1)
178foreach (var typeDefHandle in reader.TypeDefinitions)
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
178foreach (var typeDefHandle in reader.TypeDefinitions)
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
357foreach (var handle in metadataReader.TypeDefinitions)
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
329foreach (var typeHandle in _metadataReader.TypeDefinitions)
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
27foreach (TypeDefinitionHandle h in reader.TypeDefinitions)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.MetadataTables.cs (1)
30foreach (TypeDefinitionHandle h in Reader.TypeDefinitions)