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