42 references to TypeDefinition
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
927case HandleKind.TypeDefinition:
Microsoft.CodeAnalysis (12)
MetadataReader\MetadataDecoder.cs (8)
149case HandleKind.TypeDefinition: 445case HandleKind.TypeDefinition: 781case HandleKind.TypeDefinition: 931case HandleKind.TypeDefinition: 2056if (typeToken.Kind == HandleKind.TypeDefinition) 2178case HandleKind.TypeDefinition: 2261containerType == HandleKind.TypeDefinition || 2265if (containerType != HandleKind.TypeDefinition &&
MetadataReader\PEModule.cs (4)
2697if (MetadataReader.GetCustomAttribute(customAttribute).Parent.Kind != HandleKind.TypeDefinition) 2957if (tokenType == HandleKind.TypeDefinition) 3126if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition) 3135else if (typeDefOrRef.Kind == HandleKind.TypeDefinition)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
EmitMetadataTestBase.cs (1)
144case HandleKind.TypeDefinition:
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
MetadataDecoder.cs (1)
193case HandleKind.TypeDefinition:
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
23case HandleKind.TypeDefinition:
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\MetadataReaderUtils.cs (2)
172case HandleKind.TypeDefinition: 342case HandleKind.TypeDefinition:
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EvaluationContext.vb (1)
79Debug.Assert(MetadataTokens.Handle(typeToken).Kind = HandleKind.TypeDefinition)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
590if (typeDefOrRefHandle.Kind == HandleKind.TypeDefinition) 688case HandleKind.TypeDefinition:
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
641case HandleKind.TypeDefinition:
System.Reflection.Metadata (15)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (7)
205case HandleKind.TypeDefinition: return HasCustomAttributeTag.TypeDef; 288case HandleKind.TypeDefinition: return HasDeclSecurityTag.TypeDef; 399case HandleKind.TypeDefinition: return MemberRefParentTag.TypeDef; 470case HandleKind.TypeDefinition: return TypeDefOrRefOrSpecTag.TypeDef; 492case HandleKind.TypeDefinition: return TypeDefOrRefTag.TypeDef; 513case HandleKind.TypeDefinition: return TypeOrMethodDefTag.TypeDef; 562case HandleKind.TypeDefinition: return HasCustomDebugInformationTag.TypeDef;
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
417HandleKind.TypeDefinition => _provider.GetTypeFromDefinition(_reader, (TypeDefinitionHandle)handle, 0),
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
75(catchType.Kind == HandleKind.TypeDefinition ||
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
406case HandleKind.TypeDefinition:
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
305case HandleKind.TypeDefinition:
System\Reflection\Metadata\MetadataReader.WinMD.cs (3)
705if (targetType.Kind != HandleKind.TypeDefinition) 769else if (typeDefOrRef.Kind == HandleKind.TypeDefinition) 811if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (1)
27typeOrNamespace.Kind == HandleKind.TypeDefinition ||
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
63case HandleKind.TypeDefinition: // Not clear if this can happen but as fail-safe....
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (2)
21HandleKind.TypeDefinition => ((TypeDefinitionHandle)handle).ResolveTypeDef(module), 142HandleKind.TypeDefinition => new EcmaGenericTypeParameterType(gph, module),
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (2)
27case HandleKind.TypeDefinition: 60if (tr.ResolutionScope.Kind == HandleKind.TypeDefinition || tr.ResolutionScope.Kind == HandleKind.TypeReference)