← All docs
symlink() — internals
Compiler internals for symlink(): lowering path, type checks, and runtime helpers.
symlink() — internals
Where it lives
- Signature:
src/builtins/io/symlink.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:5444 (lower_symlink) - Function symbol:
lower_symlink()
Lowering notes
- Lowers
symlink(target, link)through the target-aware libc wrapper.
Runtime helpers
The following runtime helpers are referenced:
__rt_fileatime__rt_link__rt_readlink__rt_symlink
Signature summary
function symlink(string $target, string $link): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/symlink.rs(eval_builtin!) - Dispatch hooks:
direct,values