Skip to main content

move_node

Function move_node 

Source
pub fn move_node(
    project_root: &ProjectRoot,
    node: &NodeRef,
    target: &NodeRef,
    position: InsertPosition,
) -> Result<MutationResult, AqlError>
Expand description

Move a node to a new position relative to a target. Both must be in the same file. Writes back to disk.