Boo.Lang.Parser.BooParserBase.declaration_list C# (CSharp) Method

declaration_list() protected method

protected declaration_list ( DeclarationCollection dc ) : void
dc DeclarationCollection
return void
        protected void declaration_list(
		DeclarationCollection dc
	)
        {
            Declaration d = null;

            try {      // for error handling
            d=declaration();
            if (0==inputState.guessing)
            {
                dc.Add(d);
            }
            {    // ( ... )*
                for (;;)
                {
                    if ((LA(1)==COMMA))
                    {
                        match(COMMA);
                        d=declaration();
                        if (0==inputState.guessing)
                        {
                            dc.Add(d);
                        }
                    }
                    else
                    {
                        goto _loop419_breakloop;
                    }

                }
            _loop419_breakloop:				;
            }    // ( ... )*
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "declaration_list");
                recover(ex,tokenSet_106_);
            }
            else
            {
                throw ex;
            }
            }
        }
BooParserBase