67 references to GcTypeKind
Microsoft.Diagnostics.DataContractReader.Contracts (67)
Contracts\StackWalk\GC\GcScanner.cs (9)
332
MethodSignature<
GcTypeKind
> methodSig;
346
RuntimeSignatureDecoder<
GcTypeKind
, GcSignatureContext> decoder = new(
384
bool hasRetBuf = methodSig.ReturnType is
GcTypeKind
.Other;
408
MethodSignature<
GcTypeKind
> methodSig,
441
foreach (
GcTypeKind
kind in methodSig.ParameterTypes)
447
case
GcTypeKind
.Ref:
450
case
GcTypeKind
.Interior:
453
case
GcTypeKind
.Other:
455
case
GcTypeKind
.None:
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (58)
50
: IRuntimeSignatureTypeProvider<
GcTypeKind
, GcSignatureContext>
61
public
GcTypeKind
GetPrimitiveType(PrimitiveTypeCode typeCode)
64
PrimitiveTypeCode.String or PrimitiveTypeCode.Object =>
GcTypeKind
.Ref,
65
PrimitiveTypeCode.TypedReference =>
GcTypeKind
.Other,
66
_ =>
GcTypeKind
.None,
69
public
GcTypeKind
GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)
72
public
GcTypeKind
GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)
75
public
GcTypeKind
GetTypeFromSpecification(MetadataReader reader, GcSignatureContext genericContext, TypeSpecificationHandle handle, byte rawTypeKind)
76
=> rawTypeKind == (byte)SignatureTypeKind.ValueType ?
GcTypeKind
.Other :
GcTypeKind
.Ref;
78
public
GcTypeKind
GetSZArrayType(
GcTypeKind
elementType) =>
GcTypeKind
.Ref;
79
public
GcTypeKind
GetArrayType(
GcTypeKind
elementType, ArrayShape shape) =>
GcTypeKind
.Ref;
80
public
GcTypeKind
GetByReferenceType(
GcTypeKind
elementType) =>
GcTypeKind
.Interior;
81
public
GcTypeKind
GetPointerType(
GcTypeKind
elementType) =>
GcTypeKind
.None;
83
public
GcTypeKind
GetGenericInstantiation(
GcTypeKind
genericType, ImmutableArray<
GcTypeKind
> typeArguments)
86
public
GcTypeKind
GetGenericMethodParameter(GcSignatureContext genericContext, int index)
92
return
GcTypeKind
.Ref;
97
return
GcTypeKind
.Ref;
101
public
GcTypeKind
GetGenericTypeParameter(GcSignatureContext genericContext, int index)
116
return
GcTypeKind
.Ref;
122
return
GcTypeKind
.Ref;
127
return
GcTypeKind
.Ref;
131
public
GcTypeKind
GetFunctionPointerType(MethodSignature<
GcTypeKind
> signature) =>
GcTypeKind
.None;
132
public
GcTypeKind
GetModifiedType(
GcTypeKind
modifier,
GcTypeKind
unmodifiedType, bool isRequired) => unmodifiedType;
133
public
GcTypeKind
GetInternalModifiedType(TargetPointer typeHandlePointer,
GcTypeKind
unmodifiedType, bool isRequired) => unmodifiedType;
134
public
GcTypeKind
GetPinnedType(
GcTypeKind
elementType) => elementType;
136
public
GcTypeKind
GetInternalType(TargetPointer typeHandlePointer)
139
return
GcTypeKind
.None;
147
return
GcTypeKind
.Ref;
156
private
GcTypeKind
ClassifyTokenLookup(TargetPointer lookupTable, int token, byte rawTypeKind)
162
return rawTypeKind == (byte)SignatureTypeKind.ValueType ?
GcTypeKind
.Other :
GcTypeKind
.Ref;
168
return rawTypeKind == (byte)SignatureTypeKind.ValueType ?
GcTypeKind
.Other :
GcTypeKind
.Ref;
175
/// enums collapse to their underlying primitive (<see cref="
GcTypeKind
.None"/>) so
178
private
GcTypeKind
ClassifyTypeHandle(TypeHandle typeHandle)
181
return
GcTypeKind
.Ref;
205
return
GcTypeKind
.None;
208
return
GcTypeKind
.Interior;
213
return rts.IsEnum(typeHandle) ?
GcTypeKind
.None :
GcTypeKind
.Other;
216
return
GcTypeKind
.Ref;