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