← All docs
class_get_attributes() — internals
Compiler internals for class_get_attributes(): lowering path, type checks, and runtime helpers.
class_get_attributes() — internals
Where it lives
- Signature:
src/builtins/system/class_get_attributes.rs - Lowering:
src/codegen/lower_inst/builtins/attributes.rs:77 (lower_class_get_attributes) - Function symbol:
lower_class_get_attributes()
Lowering notes
- Lowers
class_get_attributes(class)into an array ofReflectionAttributeobjects.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function class_get_attributes(string $class_name): array
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/symbols/class_get_attributes.rs(eval_builtin!) - Dispatch hooks:
direct,values