Exemple #1
0
        public ToInteger MakeToInteger(Expression expression)
        {
            var n = expression as ToInteger;

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