1835 accept(CATCH); |
1835 accept(CATCH); |
1836 accept(LPAREN); |
1836 accept(LPAREN); |
1837 JCModifiers mods = optFinal(Flags.PARAMETER); |
1837 JCModifiers mods = optFinal(Flags.PARAMETER); |
1838 List<JCExpression> catchTypes = catchTypes(); |
1838 List<JCExpression> catchTypes = catchTypes(); |
1839 JCExpression paramType = catchTypes.size() > 1 ? |
1839 JCExpression paramType = catchTypes.size() > 1 ? |
1840 toP(F.at(catchTypes.head.getStartPosition()).TypeDisjunction(catchTypes)) : |
1840 toP(F.at(catchTypes.head.getStartPosition()).TypeUnion(catchTypes)) : |
1841 catchTypes.head; |
1841 catchTypes.head; |
1842 JCVariableDecl formal = variableDeclaratorId(mods, paramType); |
1842 JCVariableDecl formal = variableDeclaratorId(mods, paramType); |
1843 accept(RPAREN); |
1843 accept(RPAREN); |
1844 JCBlock body = block(); |
1844 JCBlock body = block(); |
1845 return F.at(pos).Catch(formal, body); |
1845 return F.at(pos).Catch(formal, body); |