private static void WriteReturnStatement(BoundReturnStatement node, IndentedTextWriter writer) { writer.WriteKeyword(SyntaxKind.ReturnKeyword); if (node.Expression != null) { writer.WriteWhiteSpace(); node.Expression.WriteTo(writer); } writer.WriteLine(); }
protected virtual BoundStatement RewriteReturnStatement(BoundReturnStatement node) { BoundExpression expression = node.Expression == null ? null : RewriteExpression(node.Expression); if (expression == node.Expression) { return(node); } return(new BoundReturnStatement(expression)); }