@Override public void visit(BlockStatement statement) { WasmBlock block = new WasmBlock(false); if (statement.getId() != null) { breakTargets.put(statement, block); } for (Statement part : statement.getBody()) { accept(part); if (result != null) { block.getBody().add(result); } } if (statement.getId() != null) { breakTargets.remove(statement); } result = block; }
@Override public void visit(BlockStatement statement) { try { output.writeByte(7); writeNullableString(statement.getId()); writeSequence(statement.getBody()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(BlockStatement statement) { try { writer.append(mapBlockId(statement.getId())).append(":").ws().append("{").softNewLine().indent(); visitStatements(statement.getBody()); writer.outdent().append("}").softNewLine(); } catch (IOException e) { throw new RenderingException("IO error occurred", e); } }
@Override public void visit(BlockStatement statement) { WasmBlock block = new WasmBlock(false); if (statement.getId() != null) { breakTargets.put(statement, block); } for (Statement part : statement.getBody()) { accept(part); if (result != null) { block.getBody().add(result); } } if (statement.getId() != null) { breakTargets.remove(statement); } result = block; }
@Override public void visit(BlockStatement statement) { try { output.writeByte(7); writeNullableString(statement.getId()); writeSequence(statement.getBody()); } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(BlockStatement statement) { try { writer.append(mapBlockId(statement.getId())).append(":").ws().append("{").softNewLine().indent(); visitStatements(statement.getBody()); writer.outdent().append("}").softNewLine(); } catch (IOException e) { throw new RenderingException("IO error occurred", e); } }