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