public virtual Differences VisitQueryOrderBy(QueryOrderBy orderby1, QueryOrderBy orderby2){ Differences differences = new Differences(orderby1, orderby2); if (orderby1 == null || orderby2 == null){ if (orderby1 != orderby2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryOrderBy changes = (QueryOrderBy)orderby2.Clone(); QueryOrderBy deletions = (QueryOrderBy)orderby2.Clone(); QueryOrderBy insertions = (QueryOrderBy)orderby2.Clone(); // orderby1.Context; // orderby1.OrderList; // orderby1.Source; 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 VisitQueryOrderBy(QueryOrderBy orderby){ if (orderby == null) return null; return base.VisitQueryOrderBy((QueryOrderBy)orderby.Clone()); }