Function rustfmt_nightly::expr::rewrite_else_kw_with_comments

source ·
pub(crate) fn rewrite_else_kw_with_comments(
    force_newline_else: bool,
    is_last: bool,
    context: &RewriteContext<'_>,
    span: Span,
    shape: Shape
) -> String
Expand description

Rewrite the else keyword with surrounding comments.

force_newline_else: whether or not to rewrite the else keyword on a newline. is_last: true if this is an else and false if this is an else if block. context: rewrite context span: Span between the end of the last expression and the start of the else block, which contains the else keyword shape: Shape