Exemplo n.º 1
0
        void ArgumentList(AST parent, ICallable list)
        {
            bool matched;
            ts.allow_reg_exp = true;
            matched = ts.MatchToken (Token.RP);
            ts.allow_reg_exp = false;

            if (!matched) {
                bool first = true;
                do {
                    if (!first)
                        decompiler.AddToken (Token.COMMA);
                    first = false;
                    list.AddArg (AssignExpr (parent, false));
                } while (ts.MatchToken (Token.COMMA));
                MustMatchToken (Token.RP, "msg.no.paren.arg");
            }
            decompiler.AddToken (Token.RP);
        }