alignment_ensure_no_closing_brace: Ensure the closing brace of the call is removed

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

alignment_ensure_no_closing_braceR Documentation

Ensure the closing brace of the call is removed

Description

Must be after dropping comments because the closing brace is only guaranteed to be the last token in that case.

Usage

alignment_ensure_no_closing_brace(pd_by_line, last_line_droped_early)

Arguments

pd_by_line

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


krlmlr/styler documentation built on Sept. 30, 2024, 1:10 p.m.