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