public CaseFieldWithTargetInfo Parse(SelectAtomContext ctx) { var rslt = new CaseFieldWithTargetInfo(); rslt.Target = Table_field.Parse(ctx); foreach (var expr in this.Case_have_target_when_expressions) { rslt.CaseHaveTargetWhenExpressions.Add(expr.Parse(ctx)); } if (Case_else_expression != null) { rslt.CaseElseExpression = Case_else_expression.Parse(ctx); } return rslt; }
public CaseFieldWithTargetInfo Parse(SelectAtomContext ctx) { var rslt = new CaseFieldWithTargetInfo(); rslt.Target = Table_field.Parse(ctx); foreach (var expr in this.Case_have_target_when_expressions) { rslt.CaseHaveTargetWhenExpressions.Add(expr.Parse(ctx)); } if (Case_else_expression != null) { rslt.CaseElseExpression = Case_else_expression.Parse(ctx); } return(rslt); }