Exemplo n.º 1
0
    protected Invocation(ToFunction function, List<Expression> arguments)
    {
      Function = function;
      Arguments = arguments;
      ProfileIndex = -1;
      SourceOffset = function.SourceOffset;

      Use(Function);
      Use(Arguments);
    }
Exemplo n.º 2
0
        protected Invocation(ToFunction function, List <Expression> arguments)
        {
            Function     = function;
            Arguments    = arguments;
            ProfileIndex = -1;
            SourceOffset = function.SourceOffset;

            Use(Function);
            Use(Arguments);
        }
Exemplo n.º 3
0
        public ToFunction MakeToFunction(Expression expression)
        {
            var n = expression as ToFunction;

            if (n == null)
            {
                n = new ToFunction(MakeGuardedCast(expression));
            }
            return(n);
        }
Exemplo n.º 4
0
        public CallExpression(ToFunction function, Expression thisArg, List <Expression> arguments, bool isDirectEvalCall)
            : base(function, arguments)
        {
            ThisArg = thisArg;
            Use(ThisArg);

            IsDirectEvalCall = isDirectEvalCall;

            m.Util.Diagnose.Debug.Assert(
                !IsDirectEvalCall ||
                ThisArg == null
                , "Invalid situation! DirectEvalCall cannot have a this argument");
        }
Exemplo n.º 5
0
    public CallExpression(ToFunction function, Expression thisArg, List<Expression> arguments, bool isDirectEvalCall)
      : base(function, arguments)
    {
      ThisArg = thisArg;
      Use(ThisArg);

      IsDirectEvalCall = isDirectEvalCall;

      m.Util.Diagnose.Debug.Assert(
        !IsDirectEvalCall
        || ThisArg == null
        , "Invalid situation! DirectEvalCall cannot have a this argument");
      
    }
Exemplo n.º 6
0
 public override void Visit(ToFunction node) { Visit(node, Types.Operations.Convert.ToFunction); }
Exemplo n.º 7
0
 public override void Visit(ToFunction node) { Visit((ConversionExpression)node); }
Exemplo n.º 8
0
 public override void Visit(ToFunction node) { base.Visit(node); node.ValueType = GetType(node); }
Exemplo n.º 9
0
 internal static mdr.ValueTypes GetType(ToFunction expression) { return mdr.ValueTypes.Function; }
Exemplo n.º 10
0
 public NewExpression(ToFunction function, List <Expression> arguments)
     : base(function, arguments)
 {
 }
Exemplo n.º 11
0
 public override void Visit(ToFunction node)
 {
     Visit((ConversionExpression)node);
 }
Exemplo n.º 12
0
 public ToFunction MakeToFunction(Expression expression)
 {
   var n = expression as ToFunction;
   if (n == null)
   {
     n = new ToFunction(MakeGuardedCast(expression));
   }
   return n;
 }
Exemplo n.º 13
0
 public abstract void Visit(ToFunction node);
Exemplo n.º 14
0
 public override void Visit(ToFunction node)
 {
   PushLocation(node);
   VisitNode(node.Expression);
   Call(Types.Operations.Stack.ToFunction, 1, 1);
   PopLocation();
 }
Exemplo n.º 15
0
 public override void Visit(ToFunction node) { AssignToImplicitReturn(node); }
Exemplo n.º 16
0
 public NewExpression(ToFunction function, List<Expression> arguments)
   : base(function, arguments)
 { }