← All docs
linkinfo() — internals
Compiler internals for linkinfo(): lowering path, type checks, and runtime helpers.
linkinfo() — internals
Where it lives
- Signature:
src/builtins/io/linkinfo.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5436 (lower_linkinfo) - Function symbol:
lower_linkinfo()
Lowering notes
- Lowers
linkinfo(path)through the target-aware runtime lstat helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_link__rt_linkinfo__rt_readlink__rt_symlink
Signature summary
function linkinfo(string $path): int
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/linkinfo.rs(eval_builtin!) - Dispatch hooks:
direct,values