public virtual Differences VisitQueryQuantifier(QueryQuantifier qq1, QueryQuantifier qq2){ Differences differences = new Differences(qq1, qq2); if (qq1 == null || qq2 == null){ if (qq1 != qq2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryQuantifier changes = (QueryQuantifier)qq2.Clone(); QueryQuantifier deletions = (QueryQuantifier)qq2.Clone(); QueryQuantifier insertions = (QueryQuantifier)qq2.Clone(); // qq1.Expression; // qq1.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 VisitQueryQuantifier(QueryQuantifier qq){ if (qq == null) return null; return base.VisitQueryQuantifier((QueryQuantifier)qq.Clone()); }