()
| 1310 | } |
| 1311 | |
| 1312 | public IfStatement ifStatement() { |
| 1313 | Token position = consume(IF); |
| 1314 | |
| 1315 | consume(LEFT_PAREN); |
| 1316 | Expression testExpr = expression(); |
| 1317 | consume(RIGHT_PAREN); |
| 1318 | |
| 1319 | Statement body = statement(); |
| 1320 | |
| 1321 | if (la() == ELSE) { |
| 1322 | consume(ELSE); |
| 1323 | Statement elseBody = statement(); |
| 1324 | return factory.ifStatement(position, testExpr, body, elseBody); |
| 1325 | } |
| 1326 | return factory.ifStatement(position, testExpr, body); |
| 1327 | } |
| 1328 | |
| 1329 | public ContinueStatement continueStatement() { |
| 1330 | Token position = consume(CONTINUE); |
no test coverage detected