Skip to content

Update XAST after node removal #42

Discussion options

You must be logged in to vote

@guillaumegarcia13 some context on position.

The position field represents the location of a node in a source document
https://github.com/syntax-tree/unist#node

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…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@guillaumegarcia13
Comment options

@wooorm
Comment options

@guillaumegarcia13
Comment options

Answer selected by guillaumegarcia13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants