← All docs
class_parents() — internals
Compiler internals for class_parents(): lowering path, type checks, and runtime helpers.
class_parents() — internals
Where it lives
- Signature:
src/builtins/callables/class_parents.rs - Lowering:
src/codegen/lower_inst/builtins/class_relations.rs:32 (lower_class_relation) - Function symbol:
lower_class_relation()
Lowering notes
- Lowers
class_implements(),class_parents(), andclass_uses()from static metadata.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function class_parents(mixed $object_or_class, bool $autoload = true): mixed
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/class_parents.rs(eval_builtin!) - Dispatch hooks:
direct,values