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