← All docs
stream_filter_prepend() — internals
Compiler internals for stream_filter_prepend(): lowering path, type checks, and runtime helpers.
stream_filter_prepend() — internals
Where it lives
- Signature:
src/builtins/io/stream_filter_prepend.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:1548 (lower_stream_filter_attach) - Function symbol:
lower_stream_filter_attach()
Lowering notes
- Lowers
stream_filter_appendandstream_filter_prepend.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function stream_filter_prepend(resource $stream, string $filtername, int $read_write = 3, mixed $params = null): mixed
What the type checker enforces
- Arity: takes 2–4 arguments (2 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/stream_filter_prepend.rs(eval_builtin!) - Dispatch hooks:
direct,values