Example #1
0
        // k, v, iter = ITER( x, iter )
        internal override bool Iterate(DataStack ds)
        {
            if (_data.Current == null)
            {
                return(false);
            }

            ds.Push(this);
            ds.Push(_data.Current);
            ds.Push(new ValueInteger32(_index));

            return(true);
        }
Example #2
0
        // k, v, iter = ITER( x, iter )
        internal override bool Iterate(DataStack ds)
        {
            if (_data.Current.Equals(nullKV))
            {
                return(false);
            }

            ds.Push(this);
            var kv = _data.Current;

            ds.Push(kv.Value);
            ds.Push(kv.Key);

            return(true);
        }
Example #3
0
        void ObjectListToDataStack(object[] paramToExec)
        {
            if (paramToExec == null)
            {
                return;
            }

            // 参数转到栈上
            foreach (var obj in paramToExec)
            {
                var v = Convertor.NativeValueToValue(obj);
                _dataStack.Push(v);
            }
        }