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