Removes the node from the JSON. Note: Removing certain nodes may cause syntax errors.
(self)
| 546 | /// |
| 547 | /// Note: Removing certain nodes may cause syntax errors. |
| 548 | pub fn remove(self) { |
| 549 | match self { |
| 550 | CstNode::Container(n) => n.remove(), |
| 551 | CstNode::Leaf(n) => n.remove(), |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | fn parent_info(&self) -> Option<ParentInfo> { |
| 556 | match self { |
no test coverage detected