← All docs
fnmatch() — internals
Compiler internals for fnmatch(): lowering path, type checks, and runtime helpers.
fnmatch() — internals
Where it lives
- Signature:
src/builtins/io/fnmatch.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4599 (lower_fnmatch) - Function symbol:
lower_fnmatch()
Lowering notes
- Lowers
fnmatch(pattern, filename, flags?)through the target-aware runtime helper.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function fnmatch(string $pattern, string $filename, int $flags = 0): bool
What the type checker enforces
- Arity: takes 2–3 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/fnmatch.rs(eval_builtin!) - Dispatch hooks:
direct,values