Writes a rendered tree back to OpenUI Lang (language.md, section 9.2).
The entry comes first; every other component with a statement name becomes
its own statement, children before parents. Props go by position, null
holds an unfilled position and trailing nulls of optional props are
trimmed. Query and mutation statements do not round-trip.
Summary
Functions
Serializes an expression, adding the parentheses its grouping needs.
Serializes an evaluated tree. state: adds $name = value declarations
after the components (nil values are skipped).
Functions
@spec expression(OpenUI.Parser.Expression.ast()) :: String.t()
Serializes an expression, adding the parentheses its grouping needs.
@spec to_source(OpenUI.Element.t(), OpenUI.Library.t() | module(), keyword()) :: String.t()
Serializes an evaluated tree. state: adds $name = value declarations
after the components (nil values are skipped).