CSLE.CLS_Content.OutStack C# (CSharp) Method

OutStack() public method

public OutStack ( CLS_Content expr ) : void
expr CLS_Content
return void
        public void OutStack(CLS_Content expr)
        {
            if (!useDebug) return;
            if (stackContent.Peek() != expr)
            {
                throw new Exception("OutStackContent error:" + expr.ToString() + " err:" + stackContent.Peek().ToString());
            }
            stackContent.Pop();
        }
        public void InStack(ICLS_Expression expr)

Same methods

CLS_Content::OutStack ( ICLS_Expression expr ) : void

Usage Example

コード例 #1
0
        public CLS_Content.Value ComputeValue(CLS_Content content)
        {
            content.InStack(this);
            var parent = listParam[0].ComputeValue(content);

            if (parent == null)
            {
                throw new Exception("调用空对象的方法:" + listParam[0].ToString() + ":" + ToString());
            }
            ICLS_TypeFunction typefunction = content.environment.GetType(parent.type).function;

            if (parent.type is object)
            {
                SInstance s = parent.value as SInstance;
                if (s != null)
                {
                    typefunction = s.type;
                }
            }
            //var type = content.environment.GetType(parent.type);
            var value = typefunction.MemberValueGet(content, parent.value, membername);

            content.OutStack(this);
            return(value);
            //做数学计算
            //从上下文取值
            //_value = null;
            //return null;
        }
All Usage Examples Of CSLE.CLS_Content::OutStack