← All docs
is_readable() — internals
Compiler internals for is_readable(): lowering path, type checks, and runtime helpers.
is_readable() — internals
Where it lives
- Signature:
src/builtins/io/is_readable.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5604 (lower_is_readable) - Function symbol:
lower_is_readable()
Lowering notes
- Lowers
is_readable(path)through the target-aware runtime access helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_is_executable__rt_is_readable__rt_is_writable
Signature summary
function is_readable(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_readable.rs(eval_builtin!) - Dispatch hooks:
direct,values