Recognise delegates (#42)

This commit is contained in:
Patrick Stevens
2025-06-04 21:48:24 +01:00
committed by GitHub
parent 19eb7c245d
commit cd293bfa22
3 changed files with 21 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ type BaseClassTypes<'corelib> =
Array : TypeInfo<WoofWare.PawPrint.GenericParameter>
Enum : TypeInfo<WoofWare.PawPrint.GenericParameter>
ValueType : TypeInfo<WoofWare.PawPrint.GenericParameter>
DelegateType : TypeInfo<WoofWare.PawPrint.GenericParameter>
Object : TypeInfo<WoofWare.PawPrint.GenericParameter>
}
@@ -246,6 +247,8 @@ module TypeInfo =
ResolvedBaseType.Enum
elif typeDefinitionHandle = baseClassTypes.ValueType.TypeDefHandle then
ResolvedBaseType.ValueType
elif typeDefinitionHandle = baseClassTypes.DelegateType.TypeDefHandle then
ResolvedBaseType.Delegate
else
let baseType = getType baseClassTypes.Corelib typeDefinitionHandle
resolveBaseType baseClassTypes getName getType sourceAssembly baseType.BaseType