Inheritance: ICLS_Expression
Beispiel #1
0
        public ICLS_Expression Compiler_Expression_FunctionYield(IList <Token> tlist, ICLS_Environment content, int pos, int posend)
        {
            m_tempYieldCount++;

            CLS_Expression_Yield func = new CLS_Expression_Yield(pos, posend, tlist[pos].line, tlist[posend].line);

            ICLS_Expression subvalue;
            bool            succ = Compiler_Expression(tlist, content, pos + 1, posend, out subvalue);

            if (succ)
            {
                func.listParam.Add(subvalue);
            }
            return(func);
        }
        public ICLS_Expression Compiler_Expression_FunctionYield(IList<Token> tlist, ICLS_Environment content, int pos, int posend)
        {
            m_tempYieldCount++;

            CLS_Expression_Yield func = new CLS_Expression_Yield(pos, posend, tlist[pos].line, tlist[posend].line);

            ICLS_Expression subvalue;
            bool succ = Compiler_Expression(tlist, content, pos + 1, posend, out subvalue);
            if (succ)
            {
                func.listParam.Add(subvalue);
            }
            return func;
        }