protected internal override Node VisitUnarySqlExpression([NotNull] UnarySqlExpression node) { this.Builder.Append($"{node.Op}("); this.Visit(node.Expression); this.Builder.Append($")"); return(node); }
protected internal override Node VisitUnarySqlExpression(UnarySqlExpression node) { node = this.ValidateChildren(node); this.Data.SetType(node, new TypeDescriptor(UnaryOperator.InferType(node.Op, this.Data.GetType(node.Expression).SimplifiedType))); if (this.Scope.IsGroupByExpression(node)) { this.Data.SetScope(node, NodeScope.Group); } return(node); }
/// <summary> /// Visits a <see cref="UnarySqlExpression"/>. /// </summary> /// <param name="node"> /// The node. /// </param> /// <returns> /// The node, or a new version of the node. /// </returns> protected internal virtual Node VisitUnarySqlExpression([NotNull] UnarySqlExpression node) { return(node.VisitChildren(this)); }
/// <summary> /// Visits a <see cref="UnarySqlExpression"/>. /// </summary> /// <param name="node"> /// The node. /// </param> /// <returns> /// The node, or a new version of the node. /// </returns> protected internal override Node VisitUnarySqlExpression(UnarySqlExpression node) { return(this.CheckForGroups(node, n => base.VisitUnarySqlExpression(n))); }
/// <summary> /// Visits a <see cref="UnarySqlExpression"/>. /// </summary> /// <param name="node"> /// The node. /// </param> /// <returns> /// The node, or a new version of the node. /// </returns> protected internal override Node VisitUnarySqlExpression(UnarySqlExpression node) { return(this.VisitImplementation(node) ?? base.VisitUnarySqlExpression(node)); }