Skip to main content

Module component_registry

Module component_registry 

Source

Constants§

SUPPORTED_COMPONENT_NAMES

Functions§

ce_ast_to_materialized
Convert a ground ComponentExpression (literals only — no binops, no function calls in args other than nested component expressions) into a MaterializedCE that spawn_tree consumes. This is the synchronous bridge between to_mms_ast output and the live spawn path; it does not involve the MMS evaluator thread.
component_expr_uses_property_assignment_only
filtered_root_ids_for_roots
filtered_roots_to_ce_ast
filtered_world_root_ids
filtered_world_to_ce_ast
is_universal_component_named_prop
spawn_tree
Recursively spawn the component tree described by ce, attach it to parent (if any), and initialise it. Returns the root ComponentId.
spawn_tree_uninitialized
Like spawn_tree, but does not attach to a parent and does not run init_component_tree. The resulting subtree exists in the World’s component slotmap as a detached, uninitialised tree, addressable by the returned ComponentId.
subtree_to_ce_ast
Walk a live component subtree and emit a ComponentExpression AST node (root + nested children in the body). Each component contributes its own to_mms_ast() for its header; children are appended as Statement::Expression(Expression::Component(...)) in the body.
subtree_to_ce_ast_limited
with_live_render_assets