public virtual Differences VisitQueryDelete(QueryDelete delete1, QueryDelete delete2){ Differences differences = new Differences(delete1, delete2); if (delete1 == null || delete2 == null){ if (delete1 != delete2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryDelete changes = (QueryDelete)delete2.Clone(); QueryDelete deletions = (QueryDelete)delete2.Clone(); QueryDelete insertions = (QueryDelete)delete2.Clone(); // delete1.Context; // delete1.Source; // delete1.Target; 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 VisitQueryDelete(QueryDelete delete){ if (delete == null) return null; return base.VisitQueryDelete((QueryDelete)delete.Clone()); }