Lavash.Component.Transformers.CompileComponent (Lavash v0.4.0-rc.3)

Copy Markdown View Source

Compiles component template and generates all LiveComponent callbacks.

Reads pre-tokenized template tokens from :lavash_template_tokens and compiles them to %Rendered{} AST via TagEngine.compile_from_tokens. Generates render/1, update/2, handle_event/2, introspection functions, and __phoenix_macro_components__/0 via Transformer.eval.

This is the final transformer in the component pipeline — it runs after all analysis and JS generation is complete.

Summary

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.

transform(dsl_state)

Callback implementation for Spark.Dsl.Transformer.transform/1.