56 references to TypeReference
BuildValidator (1)
Util.cs (1)
75Debug.Assert(memberRef.Parent.Kind == HandleKind.TypeReference);
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
450if (attributeMemberParent.Kind == HandleKind.TypeReference)
Microsoft.Cci.Extensions (2)
Extensions\CSharp\CSharpCciExtensions.cs (2)
930case HandleKind.TypeReference: 932return tr.ResolutionScope.Kind != HandleKind.TypeReference && !tr.Namespace.IsNil && tr.Namespace.Equals(@namespace, reader) && tr.Name.Equals(name, reader);
Microsoft.CodeAnalysis (12)
MetadataReader\MetadataDecoder.cs (8)
158case HandleKind.TypeReference: 449case HandleKind.TypeReference: 553if (tokenType == HandleKind.TypeReference) 787case HandleKind.TypeReference: 929case HandleKind.TypeReference: 2180case HandleKind.TypeReference: 2262containerType == HandleKind.TypeReference || 2266containerType != HandleKind.TypeReference &&
MetadataReader\PEModule.cs (4)
2971else if (tokenType == HandleKind.TypeReference) 2975if (typeRef.ResolutionScope.Kind == HandleKind.TypeReference) 3121if (typeDefOrRef.Kind == HandleKind.TypeReference) 3126if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
4219if (scope.Kind == HandleKind.TypeReference)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
MetadataDecoder.cs (2)
195case HandleKind.TypeReference: 240case HandleKind.TypeReference:
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\MetadataReaderUtils.cs (2)
170case HandleKind.TypeReference: 365case HandleKind.TypeReference:
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTestBase.vb (1)
200Case HandleKind.AssemblyReference, HandleKind.ModuleReference, HandleKind.TypeReference, HandleKind.MemberReference, HandleKind.TypeSpecification, HandleKind.MethodSpecification
PDB\PortablePdbTests.vb (1)
57Assert.Equal(HandleKind.TypeReference, typeHandle.Kind)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
594else if (typeDefOrRefHandle.Kind == HandleKind.TypeReference) 689case HandleKind.TypeReference:
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
637case HandleKind.TypeReference:
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
76=> kind is not (HandleKind.AssemblyReference or HandleKind.ModuleReference or HandleKind.TypeReference or HandleKind.MemberReference or HandleKind.TypeSpecification or HandleKind.MethodSpecification);
RunTests (1)
AssemblyScheduler.cs (1)
357if (ctor.Parent.Kind is HandleKind.TypeReference)
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
261if (container.Kind == HandleKind.TypeReference)
System.Reflection.Metadata (21)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (6)
204case HandleKind.TypeReference: return HasCustomAttributeTag.TypeRef; 400case HandleKind.TypeReference: return MemberRefParentTag.TypeRef; 449case HandleKind.TypeReference: return ResolutionScopeTag.TypeRef; 471case HandleKind.TypeReference: return TypeDefOrRefOrSpecTag.TypeRef; 493case HandleKind.TypeReference: return TypeDefOrRefTag.TypeRef; 561case HandleKind.TypeReference: return HasCustomDebugInformationTag.TypeRef;
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
418HandleKind.TypeReference => _provider.GetTypeFromReference(_reader, (TypeReferenceHandle)handle, 0),
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
77catchType.Kind == HandleKind.TypeReference);
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
410case HandleKind.TypeReference:
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
308case HandleKind.TypeReference:
System\Reflection\Metadata\MetadataReader.WinMD.cs (10)
241if (extends.Kind == HandleKind.TypeReference && IsSystemAttribute((TypeReferenceHandle)extends)) 366if (extends.Kind != HandleKind.TypeReference) 420if (parentBaseType.Kind == HandleKind.TypeReference) 551if (baseTypeHandle.Kind == HandleKind.TypeReference) 612if (parent.Kind == HandleKind.TypeReference) 629if (token.Kind != HandleKind.TypeReference) 717if (attributeType.Kind != HandleKind.TypeReference) 753if (typeDefOrRef.Kind == HandleKind.TypeReference) 758if (!resolutionScope.IsNil && resolutionScope.Kind == HandleKind.TypeReference) 811if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (1)
28typeOrNamespace.Kind == HandleKind.TypeReference ||
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (2)
69case HandleKind.TypeReference: 72return tr.ResolutionScope.Kind != HandleKind.TypeReference && tr.Name.Equals(name, reader) && tr.Namespace.Equals(ns, reader);
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (2)
22HandleKind.TypeReference => ((TypeReferenceHandle)handle).ResolveTypeRef(module), 85case HandleKind.TypeReference:
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (2)
30case HandleKind.TypeReference: 60if (tr.ResolutionScope.Kind == HandleKind.TypeDefinition || tr.ResolutionScope.Kind == HandleKind.TypeReference)