public virtual Differences VisitQueryOrderItem(QueryOrderItem item1, QueryOrderItem item2){ Differences differences = new Differences(item1, item2); if (item1 == null || item2 == null){ if (item1 != item2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryOrderItem changes = (QueryOrderItem)item2.Clone(); QueryOrderItem deletions = (QueryOrderItem)item2.Clone(); QueryOrderItem insertions = (QueryOrderItem)item2.Clone(); // item1.Expression; // item1.OrderType; 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 VisitQueryOrderItem(QueryOrderItem item){ if (item == null) return null; return base.VisitQueryOrderItem((QueryOrderItem)item.Clone()); }