add_token_terminal {styler} | R Documentation |
Add information about previous / next token to each terminal
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 shallowify()
.
Usage
add_terminal_token_after(pd_flat)
add_terminal_token_before(pd_flat)
add_attributes_caching(pd_flat, transformers, more_specs)
Arguments
pd_flat |
A flat parse table. |
transformers |
Passed to |
more_specs |
Passed to |
Functions
-
add_attributes_caching()
: Initializesnewlines
andlag_newlines
.
[Package styler version 1.10.3 Index]