@Override public void visit(ReturnStatement statement) { try { output.writeByte(statement.getResult() != null ? 12 : 13); writeLocation(statement.getLocation()); if (statement.getResult() != null) { writeExpr(statement.getResult()); } } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(ReturnStatement statement) { if (statement.getResult() != null) { accept(statement.getResult()); } else { result = null; } result = new WasmReturn(result); result.setLocation(statement.getLocation()); }
@Override public void visit(ReturnStatement statement) { pushLocation(statement.getLocation()); try { if (statement.getResult() != null) { statement.getResult().acceptVisitor(this); statement.setResult(resultExpr); } resultStmt = statement; } finally { popLocation(); } }
@Override public void visit(ReturnStatement statement) { try { debugEmitter.emitStatementStart(); if (statement.getLocation() != null) { pushLocation(statement.getLocation()); } writer.append("return"); if (statement.getResult() != null) { writer.append(' '); prevCallSite = debugEmitter.emitCallSite(); precedence = Precedence.min(); statement.getResult().acceptVisitor(this); debugEmitter.emitCallSite(); } writer.append(";").softNewLine(); if (statement.getLocation() != null) { popLocation(); } } catch (IOException e) { throw new RenderingException("IO error occurred", e); } }
@Override public void visit(ReturnStatement statement) { try { output.writeByte(statement.getResult() != null ? 12 : 13); writeLocation(statement.getLocation()); if (statement.getResult() != null) { writeExpr(statement.getResult()); } } catch (IOException e) { throw new IOExceptionWrapper(e); } }
@Override public void visit(ReturnStatement statement) { if (statement.getResult() != null) { accept(statement.getResult()); } else { result = null; } result = new WasmReturn(result); result.setLocation(statement.getLocation()); }
@Override public void visit(ReturnStatement statement) { pushLocation(statement.getLocation()); try { if (statement.getResult() != null) { statement.getResult().acceptVisitor(this); statement.setResult(resultExpr); } resultStmt = statement; } finally { popLocation(); } }
@Override public void visit(ReturnStatement statement) { try { debugEmitter.emitStatementStart(); if (statement.getLocation() != null) { pushLocation(statement.getLocation()); } writer.append("return"); if (statement.getResult() != null) { writer.append(' '); prevCallSite = debugEmitter.emitCallSite(); precedence = Precedence.min(); statement.getResult().acceptVisitor(this); debugEmitter.emitCallSite(); } writer.append(";").softNewLine(); if (statement.getLocation() != null) { popLocation(); } } catch (IOException e) { throw new RenderingException("IO error occurred", e); } }