Editing the tree bounds results in altered start/stop bounds that no longer match the text, so we should unset the text field and have special support in the print method for this case.
We should also add checks in some of the tree_ functions to check if we have valid text or not before proceeding.
This should be easier now because trees are immutable, so we don't need to worry about modifying a tree that has state that is also captured inside of an existing node
Run this and try and print out tree, it will error right now
Editing the tree bounds results in altered start/stop bounds that no longer match the text, so we should unset the text field and have special support in the print method for this case.
We should also add checks in some of the
tree_
functions to check if we have valid text or not before proceeding.This should be easier now because trees are immutable, so we don't need to worry about modifying a tree that has state that is also captured inside of an existing node
Run this and try and print out
tree
, it will error right now