예제 #1
0
 public static UnifiedBinaryExpression Create(
     UnifiedExpression leftHandSide,
     UnifiedBinaryOperator binaryOperator,
     UnifiedExpression rightHandSide)
 {
     return(new UnifiedBinaryExpression {
         LeftHandSide = leftHandSide,
         Operator = binaryOperator,
         RightHandSide = rightHandSide,
     });
 }
예제 #2
0
 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)),
     });
 }