public virtual Differences VisitQueryDifference(QueryDifference diff1, QueryDifference diff2){ Differences differences = new Differences(diff1, diff2); if (diff1 == null || diff2 == null){ if (diff1 != diff2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryDifference changes = (QueryDifference)diff2.Clone(); QueryDifference deletions = (QueryDifference)diff2.Clone(); QueryDifference insertions = (QueryDifference)diff2.Clone(); // diff1.LeftSource; // diff1.RightSource; if (differences.NumberOfDifferences == 0){ differences.Changes = null; differences.Deletions = null; differences.Insertions = null; }else{ differences.Changes = changes; differences.Deletions = deletions; differences.Insertions = insertions; } return differences; }
public override Node VisitQueryDifference(QueryDifference diff){ if (diff == null) return null; return base.VisitQueryDifference((QueryDifference)diff.Clone()); }