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