← All docs
is_dir() — internals
Compiler internals for is_dir(): lowering path, type checks, and runtime helpers.
is_dir() — internals
Where it lives
- Signature:
src/builtins/io/is_dir.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5596 (lower_is_dir) - Function symbol:
lower_is_dir()
Lowering notes
- Lowers
is_dir(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_dir(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_dir.rs(eval_builtin!) - Dispatch hooks:
direct,values