Exemple #1
0
        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);
        }