public PositiveExpressionInfo Parse(SelectAtomContext ctx) { var rslt = new PositiveExpressionInfo(); rslt.IsPositive = true; if (!string.IsNullOrWhiteSpace(Operator)) { if (Operator == "-") rslt.IsPositive = false; } if (Unary_operator != null) rslt.UnaryOperatorInfo = Unary_operator.Parse(ctx); return rslt; }
public PositiveExpressionInfo Parse(SelectAtomContext ctx) { var rslt = new PositiveExpressionInfo(); rslt.IsPositive = true; if (!string.IsNullOrWhiteSpace(Operator)) { if (Operator == "-") { rslt.IsPositive = false; } } if (Unary_operator != null) { rslt.UnaryOperatorInfo = Unary_operator.Parse(ctx); } return(rslt); }