1 write to Comparer
Microsoft.CodeAnalysis.Workspaces (1)
Differencing\Match.cs (1)
30Comparer = comparer;
17 references to Comparer
Microsoft.CodeAnalysis.Workspaces (17)
Differencing\EditScript.cs (1)
33private TreeComparer<TNode> Comparer => Match.Comparer;
Differencing\Match.cs (15)
148var tiedToAncestor = Comparer.TiedToAncestor(label); 211var hasAncestor1 = Comparer.TryGetAncestor(node1, tiedToAncestor, out var ancestor1); 212var hasAncestor2 = Comparer.TryGetAncestor(node2, tiedToAncestor, out var ancestor2); 223Debug.Assert(Comparer.GetLabel(ancestor1) <= Comparer.GetLabel(node1)); 239var distance = Comparer.GetDistance(node1, node2); 282Debug.Assert(Comparer.TreesEqual(node1, OldRoot)); 283Debug.Assert(Comparer.TreesEqual(node2, NewRoot)); 298Debug.Assert(Comparer.TreesEqual(node2, NewRoot)); 299Debug.Assert(!result || Comparer.TreesEqual(partner1, OldRoot)); 305Debug.Assert(Comparer.TreesEqual(node2, NewRoot)); 312Debug.Assert(Comparer.TreesEqual(node1, OldRoot)); 313Debug.Assert(!result || Comparer.TreesEqual(partner2, NewRoot)); 319Debug.Assert(Comparer.TreesEqual(node1, OldRoot)); 325Debug.Assert(Comparer.TreesEqual(node2, NewRoot));
Differencing\Match.LongestCommonSubsequence.cs (1)
43yield return new Edit<TNode>(edit.Kind, _match.Comparer,