alignment_ensure_trailing_comma: Ensure last pd has a trailing comma

Description Usage Arguments

View source: R/detect-alignment-utils.R

Description

Must be after alignment_ensure_no_closing_brace() because if it comes after alignment_ensure_trailing_comma(), the last expression would not be a brace, which would make removal complicated.

Usage

1

Arguments

pd_by_line

A list, each element corresponding to a potentially incomplete parse table that represents all token from one line.


styler documentation built on Sept. 23, 2021, 5:07 p.m.