()
| 1231 | } |
| 1232 | |
| 1233 | public BlockStatement block() { |
| 1234 | try { |
| 1235 | pushContext(ContextType.OTHER); |
| 1236 | consume(LEFT_BRACE); |
| 1237 | List<Statement> statements = new ArrayList<Statement>(); |
| 1238 | |
| 1239 | while (la() != RIGHT_BRACE) { |
| 1240 | statements.add(statement()); |
| 1241 | } |
| 1242 | |
| 1243 | consume(RIGHT_BRACE); |
| 1244 | |
| 1245 | return factory.block(statements); |
| 1246 | } finally { |
| 1247 | popContext(); |
| 1248 | } |
| 1249 | } |
| 1250 | |
| 1251 | public VariableStatement variableStatement() { |
| 1252 | return variableStatement(false); |
no test coverage detected