dmd.typinf
Generate TypeInfo objects, which are needed for run-time introspection of types.
License
Source: typeinf.d
Documentation: https://dlang.org/phobos/dmd_typinf.html
-
Declaration
voidgenTypeInfo(Expressione, const ref Locloc, Typetorig, Scope*sc);Generates the
TypeInfoobject associated withif it hasn't already been generatedtorigParameters
Expressioneif not
null, then expression for pretty-printing errorsLoclocthe location for reporting line numbers in errors
Typetorigthe type to generate the
TypeInfoobject forScope*scthe scope
-
Declaration
TypegetTypeInfoType(const ref Locloc, Typet, Scope*sc);Gets the type of the
TypeInfoobject associated withtParameters
Loclocthe location for reporting line nunbers in errors
Typetthe type to get the type of the
TypeInfoobject forScope*scthe scope
Return Value
The type of the
TypeInfoobject associated witht -
Declaration
boolisSpeculativeType(Typet);Return Value
trueif any part of typetis speculative. iftisnull, returnsfalse.