Ejemplo n.º 1
0
 /// <summary>
 /// Convert a 'Minus' expression.
 /// </summary>
 /// <param name="expression">The expression.</param>
 /// <param name="parameter">The parameter.</param>
 /// <returns>The compilable expression.</returns>
 public Expression VisitZenMinusExpr <T>(ZenMinusExpr <T> expression, ExpressionConverterEnvironment parameter)
 {
     return(LookupOrCompute(expression, () =>
     {
         return Subtract <T>(
             expression.Expr1.Accept(this, parameter),
             expression.Expr2.Accept(this, parameter));
     }));
 }
Ejemplo n.º 2
0
 public ImmutableHashSet <object> VisitZenMinusExpr <T>(ZenMinusExpr <T> expression, Unit parameter)
 {
     return(LookupOrCompute(expression, () =>
     {
         var x = expression.Expr1.Accept(this, parameter);
         var y = expression.Expr2.Accept(this, parameter);
         this.Combine(x, y);
         return x.Union(y);
     }));
 }