Update XAST after node removal #42
-
I have a XAST tree on which I removed some nodes using Positions in the output of Is there a way for the XAST tree to update its positions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@guillaumegarcia13 some context on
Meaning it is intended to map back to it's original position. If you feel strongly that there should be changed, it is a possibility, but would have broad impacts on unified/syntax-tree as a whole, it should probably be an RFC https://github.com/unifiedjs/rfcs Setting that aside for a moment, this sounds like an XY Problem. |
Beta Was this translation helpful? Give feedback.
@guillaumegarcia13 some context on
position
.Meaning it is intended to map back to it's original position.
If you feel strongly that there should be changed, it is a possibility, but would have broad impacts on unified/syntax-tree as a whole, it should probably be an RFC https://github.com/unifiedjs/rfcs
It may be technically possible, but the cost of complexity and development effort being worth the benefit, isn't clear yet.
Setting that aside for a moment, this sounds like an XY Problem.
Reading between the lines a bit, the confusion is mostly around what
inspect
is pri…