← All docs
realpath() — internals
Compiler internals for realpath(): lowering path, type checks, and runtime helpers.
realpath() — internals
Where it lives
- Signature:
src/builtins/io/realpath.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3686 (lower_realpath) - Function symbol:
lower_realpath()
Lowering notes
- Lowers
realpath(path)and boxes the owned runtime string-or-false result.
Runtime helpers
The following runtime helpers are referenced:
__rt_realpath
Signature summary
function realpath(string $path): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/realpath.rs(eval_builtin!) - Dispatch hooks:
direct,values