Ejemplo n.º 1
0
        protected override BasicObject calc()
        {
            if (Method == null)
            {
                return(Void.Value);
            }
            var thisScop = Method.This?.Calc() ?? VM.CurrentScop;

            return(call(thisScop.GetFunction(Method.Name), VM.GetCleanScop(thisScop), Params));
        }
Ejemplo n.º 2
0
 /// <param name="thisScop">Remarque : thisScop must be executed befor passing to function</param>
 public static BasicObject call(BasicObject thisScop, string fName, Expression[] Params)
 {
     thisScop = thisScop ?? VM.CurrentScop;
     return(call((thisScop).GetFunction(fName), VM.GetCleanScop(thisScop), Params));
 }