← All docs

xmlwriter_write_element() — internals

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

xmlwriter_write_element() — internals

Where it lives

Lowering notes

  • Implemented by the compiler-injected xml prelude.

Semantic descriptor

Shared contract implemented by an injected elephc-PHP prelude.

EIR and runtime boundary

Implemented by an injected elephc-PHP prelude.

Signature summary

function xmlwriter_write_element(mixed $writer, string $name, ?string $content = null): bool

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Eval interpreter (magician)

Cross-references