1 instantiation of TypeDefinition
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.cs (1)
1126return new TypeDefinition(this, GetTypeDefTreatmentAndRowId(handle));
97 references to TypeDefinition
BuildValidator (1)
Util.cs (1)
67var typeDefinition = reader.GetTypeDefinition(declaringTypeHandle);
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
460TypeDefinition attributeTypeDef = mdReader.GetTypeDefinition(attributeTypeDefHandle);
Microsoft.Cci.Extensions (2)
Extensions\CSharp\CSharpCciExtensions.cs (2)
862TypeDefinition typeDefinition = metadataReader.GetTypeDefinition(MetadataTokens.TypeDefinitionHandle(rowId)); 928TypeDefinition td = reader.GetTypeDefinition((TypeDefinitionHandle)handle);
Microsoft.CodeAnalysis (14)
DiagnosticAnalyzer\AnalyzerFileReference.cs (4)
233var typeDef = module.MetadataReader.GetTypeDefinition(typeDefHandle); 257private static ImmutableArray<string> GetSupportedLanguages(TypeDefinition typeDef, PEModule peModule, Type attributeType, AttributeLanguagesFunc languagesFunc) 350private static string GetFullyQualifiedTypeName(TypeDefinition typeDef, PEModule peModule) 361var declaringTypeDef = peModule.MetadataReader.GetTypeDefinition(declaringType);
MetadataReader\MetadataReaderExtensions.cs (4)
171private static bool IsTheObjectClass(this MetadataReader reader, TypeDefinition typeDef) 177internal static bool DeclaresType(this MetadataReader reader, Func<MetadataReader, TypeDefinition, bool> predicate) 183var typeDef = reader.GetTypeDefinition(handle); 198internal static bool IsPublicNonInterfaceType(this MetadataReader reader, TypeDefinition typeDef, string namespaceName, string typeName)
MetadataReader\PEModule.cs (6)
528TypeDefinition typeDefinition = MetadataReader.GetTypeDefinition(typeDef); 595TypeDefinition row = MetadataReader.GetTypeDefinition(typeDef); 637var row = MetadataReader.GetTypeDefinition(typeDef); 934var def = MetadataReader.GetTypeDefinition(typeDef); 2967TypeDefinition typeDef = metadataReader.GetTypeDefinition(typeHandle); 3137var def = metadataReader.GetTypeDefinition((TypeDefinitionHandle)typeDefOrRef);
Microsoft.CodeAnalysis.CSharp (2)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
120var def = reader.GetTypeDefinition(handle); 204TypeDefinition def,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\DestructorTests.cs (1)
779TypeDefinition typeA = pairA.row;
Emit\CompilationEmitTests.cs (1)
5077var typeDef = peReader.GetTypeDefinition(handle);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (1)
6183var newTypeDef = reader.GetTypeDefinition(newTypeDefHandle);
PDB\TypeDefinitionDocumentTests.cs (1)
486var type = metadataReader.GetTypeDefinition(typeHandle);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
Attributes\AttributeTests_NativeInteger.cs (3)
791var typeDef = GetTypeDefinitionByName(reader, "A"); 1379var typeDef = GetTypeDefinitionByName(reader, "C"); 1597private static TypeDefinition GetTypeDefinitionByName(MetadataReader reader, string name)
Attributes\AttributeTests_Nullable.cs (11)
145var typeDef = GetTypeDefinitionByName(reader, "C0"); 180var typeDef = GetTypeDefinitionByName(reader, "C1"); 1134var typeDef = GetTypeDefinitionByName(reader, "A"); 1185var typeDef = GetTypeDefinitionByName(reader, "A"); 1346var typeDef = GetTypeDefinitionByName(reader, "C`1"); 1411var typeDef = GetTypeDefinitionByName(reader, "C`1"); 1459var typeDef = GetTypeDefinitionByName(reader, "B`1"); 1517var typeDef = GetTypeDefinitionByName(reader, "C`2"); 4748var typeDef = GetTypeDefinitionByName(reader, "A"); 4857var typeDef = GetTypeDefinitionByName(reader, "B`1"); 5406private static TypeDefinition GetTypeDefinitionByName(MetadataReader reader, string name)
Attributes\AttributeTests_Tuples.cs (4)
867Action<TypeDefinition, string[]> verifyTupleConstraint = (def, tupleNames) => 895var def = reader.GetTypeDefinition(typeHandle); 967Action<TypeDefinition, string[]> verifyTupleImpls = (def, tupleNames) => 992var def = reader.GetTypeDefinition(typeHandle);
Attributes\AttributeTests_WellKnownAttributes.cs (8)
42TypeDefinition typeDef = default; 46var type = metadataReader.GetTypeDefinition(typeHandle); 3472var def = metadataReader.GetTypeDefinition(typeHandle); 3555var row = metadataReader.GetTypeDefinition(typeHandle); 4715var row = metadataReader.GetTypeDefinition(typeDef); 4824var row = metadataReader.GetTypeDefinition(typeDef); 10699TypeDefinition typeC = default; 10703var type = peReader.GetTypeDefinition(typeHandle);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (8)
MetadataDecoder.cs (1)
208var typeDef = _reader.GetTypeDefinition(handle);
MetadataResolver.cs (7)
59var typeDef = _reader.GetTypeDefinition(typeHandle); 118private int CompareToTypeDefinition(TypeDefinition typeDef, Name signature) 135var declaringType = declaringTypeHandle.IsNil ? default : _reader.GetTypeDefinition(declaringTypeHandle); 155private bool MatchesNamespace(TypeDefinition typeDef, Name signature) 191private bool MatchesTypeName(TypeDefinition typeDef, string name) 198TypeDefinition typeDef, 260private bool MatchesMethodName(in MethodDefinition methodDef, in TypeDefinition declaringTypeDef, string name)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
FunctionResolverTestBase.cs (3)
44var typeDef = reader.GetTypeDefinition(methodDef.GetDeclaringType()); 72private static void AppendTypeName(StringBuilder builder, MetadataReader reader, TypeDefinition typeDef) 88var declaringType = reader.GetTypeDefinition(declaringTypeHandle);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
129var typeDef = dllReader.GetTypeDefinition(typeDefHandle);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
157var typeDefinition = mdReader.GetTypeDefinition(typeHandle);
Microsoft.CodeAnalysis.Test.Utilities (5)
CompilationVerifier.cs (1)
241var typeDef = metadataReader.GetTypeDefinition(typeDefHandle);
Metadata\MetadataReaderUtils.cs (3)
126var td = reader.GetTypeDefinition(handle); 344TypeDefinition type = reader.GetTypeDefinition((TypeDefinitionHandle)handle); 444var typeDef = reader.GetTypeDefinition(handle);
Metadata\MetadataValidation.cs (1)
143var typeDef = metadataReader.GetTypeDefinition(typeDefHandle);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_Tuples.vb (2)
706Sub(def As TypeDefinition, tupleNames As String()) 815Sub(def As TypeDefinition, tupleNames As String())
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
132var type = reader.GetTypeDefinition(handle);
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (6)
419TypeDefinition typeDefinition, 468var type = metadataReader.GetTypeDefinition(child); 496var typeDefinition = metadataReader.GetTypeDefinition(child); 605var typeDefinition = metadataReader.GetTypeDefinition(handle); 837public TypeDefinition Type { get; } = type; 850MetadataReader reader, TypeDefinition definition)
Microsoft.DotNet.GenFacades (2)
GenPartialFacadeSourceGenerator.cs (2)
107TypeDefinition typeDefination = reader.GetTypeDefinition(typeDefinationHandle); 138private static bool IsPublic(TypeDefinition typeDefination)
Microsoft.DotNet.PackageTesting (1)
VerifyTypes.cs (1)
193TypeDefinition definition = reader.GetTypeDefinition(handle);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
193TypeDefinition definition = reader.GetTypeDefinition(handle);
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
642var containerDef = reader.GetTypeDefinition((TypeDefinitionHandle)container); 650var typeDef = reader.GetTypeDefinition(reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).GetDeclaringType());
Roslyn.Test.PdbUtilities (1)
Shared\DummyMetadataImport.cs (1)
90var typeDef = _metadataReaderOpt.GetTypeDefinition(handle);
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
362var typeDef = metadataReader.GetTypeDefinition(handle);
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
272TypeDefinition td = reader.GetTypeDefinition(md.GetDeclaringType());
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
331TypeDefinition type = _metadataReader.GetTypeDefinition(typeHandle);
System\Reflection\Metadata\MetadataReader.cs (1)
1123public TypeDefinition GetTypeDefinition(TypeDefinitionHandle handle)
System.Reflection.MetadataLoadContext (9)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
65TypeDefinition td = ((TypeDefinitionHandle)handle).GetTypeDefinition(reader);
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (1)
44TypeDefinition td = handle.GetTypeDefinition(reader);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
54public static TypeDefinition GetTypeDefinition(this TypeDefinitionHandle handle, MetadataReader reader) => reader.GetTypeDefinition(handle);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
29TypeDefinition td = h.GetTypeDefinition(reader);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (2)
81TypeDefinition nestedTypeDefinition = handle.GetTypeDefinition(reader); 93TypeDefinition nestedTypeDefinition = handle.GetTypeDefinition(reader);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (3)
137TypeDefinition td = TypeDefinition; 144private ref readonly TypeDefinition TypeDefinition { get { Loader.DisposeCheck(); return ref _neverAccessThisExceptThroughTypeDefinitionProperty; } } 146private readonly TypeDefinition _neverAccessThisExceptThroughTypeDefinitionProperty;