← All docs
chdir() — internals
Compiler internals for chdir(): lowering path, type checks, and runtime helpers.
chdir() — internals
Where it lives
- Signature:
src/builtins/io/chdir.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4434 (lower_chdir) - Function symbol:
lower_chdir()
Lowering notes
- Lowers
chdir(path)through the target-aware runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_chdir__rt_copy__rt_glob__rt_scandir__rt_tempnam
Signature summary
function chdir(string $directory): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/chdir.rs(eval_builtin!) - Dispatch hooks:
direct,values