Generates a ConcreteEnumId instance for bool
.
Gets a semantic expression of the literal false
. Uses the given stable_ptr
in the returned
semantic expression.
Generates a ConcreteVariant instance for false
.
Returns the name of the libfunc that creates a constant of type ty
;
Gets a
ConcreteVariant instance for an enum variant from the core module, by name.
Assumes the variant exists.
Given a core library function name and its generic arguments, returns
FunctionId.
Given a core library trait name, returns
TraitId.
Gets a
ConcreteVariant instance for an enum variant, by module and name.
Assumes the variant exists.
Given a module, a library function name and its generic arguments, returns
FunctionId.
Generates a ConcreteVariant instance for IsZeroResult::<felt252>::NonZero
.
Generates a ConcreteVariant instance for IsZeroResult::<felt252>::Zero
.
Gets the never type ().
Generates a ConcreteVariant instance for Option::None
.
Generates a ConcreteVariant instance for Option::Some
.
Gets a semantic expression of the literal true
. Uses the given stable_ptr
in the returned
semantic expression.
Generates a ConcreteVariant instance for true
.
builds a semantic unit expression. This is not necessarily located in the AST, so it is received
as a param.
Gets the unit type ().
Attempts to unwrap error propagation types (Option, Result).
Returns None if not one of these types.
Validates that a given type is valid for a literal and that the value fits the range of the
specific type.