Ejemplo n.º 1
0
        public async Task <DynamicReturnValue> Evaluate(Scope scope)
        {
            DynamicReturnValue returnValue = await this.Condition.Evaluate(scope);

            if (!returnValue.IsNull())
            {
                DynamicReturnValue two = await this.Block.Evaluate(scope);

                return(two);
            }
            return(returnValue);
        }
Ejemplo n.º 2
0
        public async Task <DynamicReturnValue> Evaluate(Scope scope)
        {
            DynamicReturnValue parent = await Scope.Evaluate(scope);

            if (parent.IsNull())
            {
                Console.WriteLine("ERROR ERROR BEEP BOOP");
                return(new DynamicReturnValue(null));
            }
            string name = await GetName(scope);

            Type t = parent.GetValue <Scope>().GetType(name);

            return(new DynamicReturnValue(parent.GetValue <Scope>().Get(name)));
        }