/// <summary> /// Visits the children of a <see cref="CompareNodeCollection"/> and replaces the node if any of its children are modified. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>If any children were modified, a new node with the modified children. Otherwise, the original node.</returns> protected internal override CompareNode VisitCollection(CompareNodeCollection node) { return(node.WithChildren(VisitList(node.Children))); }