public FieldInfo Parse(SelectAtomContext ctx) { if (Value != null) { return(Value.Parse(ctx)); } if (All_field != null) { return(All_field.Parse(ctx)); } if (Table_all_field != null) { return(Table_all_field.Parse(ctx)); } if (Field_regular != null) { return(Field_regular.Parse(ctx)); } if (Case_clause_field != null) { return(Case_clause_field.Parse(ctx)); } if (Function_field != null) { return(Function_field.Parse(ctx)); } return(null); }
public OrderInfo Parse(SelectAtomContext ctx) { if (Field_regular == null) { return(null); } OrderInfo rslt = null; var temp = Field_regular.Parse(ctx); if (temp != null) { var order = new OrderInfo(); var fr = temp; order.Field = fr.FullName; order.OrderType = Is_desc ? OrderType.Desc : OrderType.Asc; return(order); } return(rslt); }