add_token_terminal: Add information about previous / next token to each terminal

Description Usage Arguments Functions

Description

Note that this does function must be called in compute_parse_data_nested() and we cannot wait to initialize this attribute until apply_transformers(), where all other attributes are initialized with default_style_guide_attributes() (when using tidyverse_style()) because for cached code, we don't build up the nested structure and leave it shallow (to speed up things), see also drop_cached_children().

Usage

1
2
3
4
5
6
7

Arguments

pd_flat

A flat parse table.

transformers

A list with transformer functions, used to check if the code is cached.

Functions


krlmlr/styler documentation built on Oct. 25, 2020, 8:13 a.m.