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