Пример #1
0
        public CaseFieldNoTargetInfo Parse(SelectAtomContext ctx)
        {
            var rslt = new CaseFieldNoTargetInfo();
            foreach (var expr in Case_when_expressions)
            {
                rslt.CaseWhenExprresses.Add(expr.Parse(ctx));
            }

            rslt.CaseElseExpression = Case_else_expression.Parse(ctx);

            return rslt;
        }
Пример #2
0
        public CaseFieldNoTargetInfo Parse(SelectAtomContext ctx)
        {
            var rslt = new CaseFieldNoTargetInfo();

            foreach (var expr in Case_when_expressions)
            {
                rslt.CaseWhenExprresses.Add(expr.Parse(ctx));
            }

            rslt.CaseElseExpression = Case_else_expression.Parse(ctx);

            return(rslt);
        }