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