/// <inheritdoc/>
        protected override Provider VisitUnion(UnionProvider provider)
        {
            OnRecursionEntrance(provider);
            var left  = VisitCompilable(provider.Left);
            var right = VisitCompilable(provider.Right);

            OnRecursionExit(provider);
            if (left == provider.Left && right == provider.Right)
            {
                return(provider);
            }
            return(new UnionProvider(left, right));
        }
 /// <summary>
 /// Visits the <see cref="UnionProvider"/>.
 /// </summary>
 /// <param name="provider">Union provider.</param>
 /// <returns></returns>
 protected abstract Provider VisitUnion(UnionProvider provider);