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.
Returns an infered impl of one of Index or IndexView traits, the number of snapshots to add to
self_ty and the mutability of the trait self param (Reference for Index, Immutable for
IndexView). Fails if no impl is found or multiple impls are found.
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.