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); }
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); }
public static ExprUnboundedFrameBorder WithFrameBorderDirection(this ExprUnboundedFrameBorder original, FrameBorderDirection newFrameBorderDirection) => new ExprUnboundedFrameBorder(frameBorderDirection: newFrameBorderDirection);