Пример #1
0
        public bool VisitExprUnboundedFrameBorder(ExprUnboundedFrameBorder expr, TCtx arg)
        {
            var res = this.Visit(expr, "UnboundedFrameBorder", arg, out var argOut);

            this.VisitPlainProperty("FrameBorderDirection", expr.FrameBorderDirection, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
Пример #2
0
        public bool VisitExprUnboundedFrameBorder(ExprUnboundedFrameBorder exprUnboundedFrameBorder, IExpr?arg)
        {
            switch (exprUnboundedFrameBorder.FrameBorderDirection)
            {
            case FrameBorderDirection.Preceding:
                this.Builder.Append("UNBOUNDED PRECEDING");
                break;

            case FrameBorderDirection.Following:
                this.Builder.Append("UNBOUNDED FOLLOWING");
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            return(true);
        }
Пример #3
0
 public static ExprUnboundedFrameBorder WithFrameBorderDirection(this ExprUnboundedFrameBorder original, FrameBorderDirection newFrameBorderDirection)
 => new ExprUnboundedFrameBorder(frameBorderDirection: newFrameBorderDirection);