rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

syntax-editor: Split concept of node identity from SyntaxNode equality

Open DropDemBits opened this issue 2 months ago • 0 comments

SyntaxEditor relies on the notion of SyntaxNode equality to track a node through the whole SyntaxMapping tree, but identity is unfortunately currently tied to SyntaxNodes being reference counted. We can add a layer of indirection (e.g. SyntaxId) so that we can associate multiple node instances with the same identity and further separate ourselves from the concept of mutable syntax trees.

DropDemBits avatar Nov 28 '25 10:11 DropDemBits