public static UnifiedBinaryExpression Create( UnifiedExpression leftHandSide, UnifiedBinaryOperator binaryOperator, UnifiedExpression rightHandSide) { return(new UnifiedBinaryExpression { LeftHandSide = leftHandSide, Operator = binaryOperator, RightHandSide = rightHandSide, }); }
public static UnifiedRange CreateNotContainingMax( UnifiedExpression min = null, UnifiedExpression max = null) { return(new UnifiedRange { Min = min, Max = UnifiedBinaryExpression.Create( max, UnifiedBinaryOperator.Create( "-", UnifiedBinaryOperatorKind.Subtract), UnifiedIntegerLiteral.CreateInt32(-1)), }); }