Beispiel #1
0
        // 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));
        }
Beispiel #2
0
        // 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));
        }
Beispiel #3
0
 // 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);
 }
Beispiel #4
0
 // 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);
 }