Removes the node from the tree without making adjustments to any siblings.
(self)
| 568 | |
| 569 | /// Removes the node from the tree without making adjustments to any siblings. |
| 570 | fn remove_raw(self) { |
| 571 | let Some(parent_info) = self.parent_info() else { |
| 572 | return; // already removed |
| 573 | }; |
| 574 | parent_info |
| 575 | .parent |
| 576 | .as_container_node() |
| 577 | .remove_child_set_no_parent(parent_info.child_index); |
| 578 | } |
| 579 | |
| 580 | /// Converts a CST node to a `serde_json::Value`. |
| 581 | /// |
no test coverage detected