예제 #1
0
        public ToDouble MakeToDouble(Expression expression)
        {
            var n = expression as ToDouble;

            if (n == null)
            {
                n = new ToDouble(MakeGuardedCast(expression));
            }
            return(n);
        }
예제 #2
0
 public override void Visit(ToDouble node) { Visit(node, Types.Operations.Convert.ToDouble); }
예제 #3
0
 public override void Visit(ToDouble node) { Visit((ConversionExpression)node); }
예제 #4
0
 public override void Visit(ToDouble node) { base.Visit(node); node.ValueType = GetType(node); }
예제 #5
0
 internal static mdr.ValueTypes GetType(ToDouble expression) { return Types.Operations.Convert.ToDouble.ReturnType(expression.ValueType); }
예제 #6
0
 public override void Visit(ToDouble node)
 {
     Visit((ConversionExpression)node);
 }
예제 #7
0
 public ToDouble MakeToDouble(Expression expression)
 {
   var n = expression as ToDouble;
   if (n == null)
   {
     n = new ToDouble(MakeGuardedCast(expression));
   }
   return n;
 }
예제 #8
0
 public abstract void Visit(ToDouble node);
예제 #9
0
 public override void Visit(ToDouble node)
 {
   PushLocation(node);
   VisitNode(node.Expression);
   Call(Types.Operations.Stack.ToDouble, 1, 1);
   PopLocation();
 }
예제 #10
0
 public override void Visit(ToDouble node) { AssignToImplicitReturn(node); }