public virtual Differences VisitQueryGeneratedType(QueryGeneratedType qgt1, QueryGeneratedType qgt2){ Differences differences = new Differences(qgt1, qgt2); if (qgt1 == null || qgt2 == null){ if (qgt1 != qgt2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } QueryGeneratedType changes = (QueryGeneratedType)qgt2.Clone(); QueryGeneratedType deletions = (QueryGeneratedType)qgt2.Clone(); QueryGeneratedType insertions = (QueryGeneratedType)qgt2.Clone(); //qgt1.Type; 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 Statement VisitQueryGeneratedType(QueryGeneratedType qgt){ if (qgt == null) return null; return base.VisitQueryGeneratedType((QueryGeneratedType)qgt.Clone()); }