← All docs

get_resource_type() — internals

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

get_resource_type() — internals

Where it lives

Lowering notes

  • Lowers get_resource_type(resource) to elephc’s current resource type label.

Runtime helpers

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

Signature summary

function get_resource_type(resource $resource): string

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references