17 references to GetTypeHandle
Microsoft.CodeAnalysis (17)
NativePdbWriter\SymWriterMetadataProvider.cs (2)
74declaringTypeToken = MetadataTokens.GetToken(_writer.GetTypeHandle(m.GetContainingType(_writer.Context))); 87enclosingTypeToken = MetadataTokens.GetToken(_writer.GetTypeHandle(nt.GetContainingType(_writer.Context)));
PEWriter\MetadataWriter.cs (9)
2214type: GetTypeHandle(eventDef.GetType(Context))); 2464constraint: GetTypeHandle(refWithAttributes.TypeRef)); 2503implementedInterface: GetTypeHandle(interfaceImpl.TypeRef)); 2785baseType: (baseType != null) ? GetTypeHandle(baseType) : default(EntityHandle), 3110ITypeReference typeReference => GetTypeHandle(typeReference), 3386(exceptionType != null) ? GetTypeHandle(exceptionType) : default(EntityHandle), 3915GetTypeHandle(uninstantiatedTypeReference, treatRefAsPotentialTypeSpec: false), 3928encoder.Type(GetTypeHandle(typeReference), typeReference.IsValueType); 4119encoder = encoder.AddModifier(GetTypeHandle(modifier.GetModifier(Context)), modifier.IsOptional);
PEWriter\MetadataWriter.PortablePdb.cs (5)
189builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 196builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 223builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 233builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); 362writer.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(import.TargetTypeOpt))); // TODO: index in release build
PEWriter\ReferenceIndexer.cs (1)
155this.metadataWriter.GetTypeHandle(typeReference);