← All docs
empty() — internals
Compiler internals for empty(): lowering path, type checks, and runtime helpers.
empty() — internals
Where it lives
- Signature:
src/types/signatures.rs - Lowering:
src/codegen/lower_inst/builtins.rs:1236 (lower_empty) - Function symbol:
lower_empty()
Lowering notes
- Lowers
empty()for concrete scalar and array-like operands.
Runtime helpers
The following runtime helpers are referenced:
__rt_mixed_is_empty
Signature summary
function empty(mixed $value): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/empty.rs(eval_builtin!) - Dispatch hooks:
direct,values