1 write to OldIndex
Microsoft.CodeAnalysis.Workspaces (1)
Differencing\SequenceEdit.cs (1)
25OldIndex = oldIndex;
15 references to OldIndex
Microsoft.CodeAnalysis.Workspaces (10)
Differencing\MapBasedLongestCommonSubsequence.cs (2)
20edit.OldIndex >= 0 ? oldNodes[edit.OldIndex] : default!,
Differencing\Match.LongestCommonSubsequence.cs (2)
44edit.OldIndex >= 0 ? oldNodes[edit.OldIndex] : default,
Differencing\SequenceEdit.cs (6)
36if (OldIndex == -1) 62return OldIndex == other.OldIndex 70=> Hash.Combine(OldIndex, NewIndex); 78return result + " (" + OldIndex + ")"; 84return result + " (" + OldIndex + " -> " + NewIndex + ")";
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Differencing\LongestCommonSubsequenceTests.cs (5)
54Assert.True(edit.OldIndex < oldStr.Length); 55oldChars[edit.OldIndex] = '\0'; 64Assert.True(edit.OldIndex < oldStr.Length); 66newChars[edit.NewIndex] = oldStr[edit.OldIndex]; 67oldChars[edit.OldIndex] = '\0';