← All docs
touch() — internals
Compiler internals for touch(): lowering path, type checks, and runtime helpers.
touch() — internals
Where it lives
- Signature:
src/builtins/io/touch.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4519 (lower_touch) - Function symbol:
lower_touch()
Lowering notes
- Lowers
touch(path, mtime?, atime?)through the target-aware runtime helper.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function touch(string $filename, int $mtime = null, int $atime = null): bool
What the type checker enforces
- Arity: takes 1–3 arguments (2 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/touch.rs(eval_builtin!) - Dispatch hooks:
direct,values