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