protected void generic_parameter_declaration( GenericParameterDeclarationCollection c ) //throws RecognitionException, TokenStreamException { IToken id = null; GenericParameterDeclaration gpd = null; try { // for error handling id = LT(1); match(ID); if (0==inputState.guessing) { gpd = new GenericParameterDeclaration(ToLexicalInfo(id)); gpd.Name = id.getText(); c.Add(gpd); } { if ((LA(1)==LPAREN) && (tokenSet_59_.member(LA(2)))) { match(LPAREN); generic_parameter_constraints(gpd); match(RPAREN); } else if ((LA(1)==LPAREN||LA(1)==RBRACK||LA(1)==COMMA) && (tokenSet_60_.member(LA(2)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } } catch (RecognitionException ex) { if (0 == inputState.guessing) { reportError(ex, "generic_parameter_declaration"); recover(ex,tokenSet_61_); } else { throw ex; } } }
//throws RecognitionException, TokenStreamException protected void generic_parameter_declaration( GenericParameterDeclarationCollection c ) { IToken id = null; try { // for error handling id = LT(1); match(ID); if (0==inputState.guessing) { GenericParameterDeclaration gpd = new GenericParameterDeclaration(SourceLocationFactory.ToLexicalInfo(id)); gpd.Name = id.getText(); c.Add(gpd); } } catch (RecognitionException ex) { if (0 == inputState.guessing) { reportError(ex); recover(ex,tokenSet_25_); } else { throw ex; } } }