← All docs

get_declared_traits() — internals

Compiler internals for get_declared_traits(): lowering path, type checks, and runtime helpers.

get_declared_traits() — internals

Where it lives

Lowering notes

  • Lowers get_declared_classes/interfaces/traits() using the shared declaration registry.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function get_declared_traits(): array

What the type checker enforces

  • Arity: takes no arguments.

Eval interpreter (magician)

Cross-references