public virtual Differences VisitReturn(Return return1, Return return2){ Differences differences = new Differences(return1, return2); if (return1 == null || return2 == null){ if (return1 != return2) differences.NumberOfDifferences++; else differences.NumberOfSimilarities++; return differences; } Return changes = (Return)return2.Clone(); Return deletions = (Return)return2.Clone(); Return insertions = (Return)return2.Clone(); Differences diff = this.VisitExpression(return1.Expression, return2.Expression); if (diff == null){Debug.Assert(false); return differences;} changes.Expression = diff.Changes as Expression; deletions.Expression = diff.Deletions as Expression; insertions.Expression = diff.Insertions as Expression; Debug.Assert(diff.Changes == changes.Expression && diff.Deletions == deletions.Expression && diff.Insertions == insertions.Expression); differences.NumberOfDifferences += diff.NumberOfDifferences; differences.NumberOfSimilarities += diff.NumberOfSimilarities; 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; }