Function ide_db::syntax_helpers::tree_diff::diff
source ยท pub fn diff(from: &SyntaxNode, to: &SyntaxNode) -> TreeDiff
Expand description
Finds a (potentially minimal) diff, which, applied to from
, will result in to
.
Specifically, returns a structure that consists of a replacements, insertions and deletions
such that applying this map on from
will result in to
.
This function tries to find a fine-grained diff.