Skip to main content

expr_to_ast_node

Function expr_to_ast_node 

Source
pub fn expr_to_ast_node(expr: &LogicExpr<'_>, interner: &Interner) -> AstNode
Expand description

Converts a logic expression to an AST node for tree visualization.

Recursively builds a tree structure with labeled nodes suitable for rendering in the UI. Each node includes a display label, node type for styling, and child nodes.