// return which spans of text in the new document are possibly different than text in the old document internal static IList <TextSpan> GetPossiblyDifferentTextSpans(SyntaxNode oldNode, SyntaxNode newNode) { var differ = new SyntaxDiffer(oldNode, newNode, false); differ.ComputeChanges(); return(ConvertToSpansInNew(differ.changes)); }
// return a set of text changes that when applied to the old document produces the new document internal static IList <TextChange> GetTextChanges(SyntaxNode oldNode, SyntaxNode newNode) { var differ = new SyntaxDiffer(oldNode, newNode, true); differ.ComputeChanges(); return(ConvertToTextChangesFromOld(differ.changes)); }
// return which spans of text in the new document are possibly different than text in the old document internal static IList<TextSpan> GetPossiblyDifferentTextSpans(SyntaxNode oldNode, SyntaxNode newNode) { var differ = new SyntaxDiffer(oldNode, newNode, false); differ.ComputeChanges(); return ConvertToSpansInNew(differ.changes); }
// return a set of text changes that when applied to the old document produces the new document internal static IList<TextChange> GetTextChanges(SyntaxNode oldNode, SyntaxNode newNode) { var differ = new SyntaxDiffer(oldNode, newNode, true); differ.ComputeChanges(); return ConvertToTextChangesFromOld(differ.changes); }