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
void
genTypeInfo
(const ref Locloc
, Typetorig
, Scope*sc
);Generates the
TypeInfo
object associated with
if it hasn't already been generatedtorig
Parameters
Loc
loc
the location for reporting line numbers in errors
Type
torig
the type to generate the
TypeInfo
object forScope*
sc
the scope
-
Declaration
Type
getTypeInfoType
(const ref Locloc
, Typet
, Scope*sc
);Gets the type of the
TypeInfo
object associated witht
Parameters
Loc
loc
the location for reporting line nunbers in errors
Type
t
the type to get the type of the
TypeInfo
object forScope*
sc
the scope
Return Value
The type of the
TypeInfo
object associated witht
-
Declaration
bool
isSpeculativeType
(Typet
);Return Value
true
if any part of typet
is speculative. ift
isnull
, returnsfalse
.