find_line_break_position_in_multiline_call: Find index of the token before which the line should be...

View source: R/rules-line-breaks.R

find_line_break_position_in_multiline_callR Documentation

Find index of the token before which the line should be broken

Description

Given a multi-line function call parse table, this function finds the position of the first named argument and breaks returns the index of it. If there is no named argument, the line is broken right after the opening parenthesis.

Usage

find_line_break_position_in_multiline_call(pd)

Arguments

pd

A parse table.


styler documentation built on Aug. 29, 2023, 5:10 p.m.