mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-05 14:18:40 +00:00
Recognise runtime types (#45)
This commit is contained in:
@@ -115,6 +115,9 @@ type BaseClassTypes<'corelib> =
|
||||
ValueType : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
DelegateType : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
Object : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
RuntimeMethodHandle : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
RuntimeFieldHandle : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
RuntimeTypeHandle : TypeInfo<WoofWare.PawPrint.GenericParameter>
|
||||
}
|
||||
|
||||
[<RequireQualifiedAccess>]
|
||||
|
@@ -94,6 +94,21 @@ module Corelib =
|
||||
|> Seq.choose (fun (KeyValue (_, v)) -> if v.Name = "Delegate" then Some v else None)
|
||||
|> Seq.exactlyOne
|
||||
|
||||
let runtimeMethodHandleType =
|
||||
corelib.TypeDefs
|
||||
|> Seq.choose (fun (KeyValue (_, v)) -> if v.Name = "RuntimeMethodHandle" then Some v else None)
|
||||
|> Seq.exactlyOne
|
||||
|
||||
let runtimeTypeHandleType =
|
||||
corelib.TypeDefs
|
||||
|> Seq.choose (fun (KeyValue (_, v)) -> if v.Name = "RuntimeTypeHandle" then Some v else None)
|
||||
|> Seq.exactlyOne
|
||||
|
||||
let runtimeFieldHandleType =
|
||||
corelib.TypeDefs
|
||||
|> Seq.choose (fun (KeyValue (_, v)) -> if v.Name = "RuntimeFieldHandle" then Some v else None)
|
||||
|> Seq.exactlyOne
|
||||
|
||||
{
|
||||
Corelib = corelib
|
||||
String = stringType
|
||||
@@ -114,4 +129,7 @@ module Corelib =
|
||||
ValueType = valueType
|
||||
DelegateType = delegateType
|
||||
Object = objType
|
||||
RuntimeTypeHandle = runtimeTypeHandleType
|
||||
RuntimeMethodHandle = runtimeMethodHandleType
|
||||
RuntimeFieldHandle = runtimeFieldHandleType
|
||||
}
|
||||
|
Reference in New Issue
Block a user