set_node_at_path

Function set_node_at_path 

Source
pub fn set_node_at_path(
    root: &AstNode,
    path: &AstPath,
    new_node: Option<AstNode>,
) -> Option<AstNode>
Expand description

Set a node in the AST at the given path. Enables precise AST node modification.