← All docs
get_parent_class() — internals
Compiler internals for get_parent_class(): lowering path, type checks, and runtime helpers.
get_parent_class() — internals
Where it lives
- Signature:
src/builtins/callables/get_parent_class.rs - Lowering:
src/codegen/lower_inst/builtins/types.rs:331 (lower_class_name_lookup) - Function symbol:
lower_class_name_lookup()
Lowering notes
- Lowers
get_class()andget_parent_class()through static or dynamic class metadata.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function get_parent_class(mixed $object_or_class = null): string
What the type checker enforces
- Arity: takes 0–1 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/get_parent_class.rs(eval_builtin!) - Dispatch hooks:
direct,values