This function initializes and removes various variables from the parse table.

default_style_guide_attributes(pd_flat)

Arguments

pd_flat

A parse table.

Examples

withr::with_options(
  list(styler.cache_name = NULL), # temporarily deactivate cache
  {
    string_to_format <- "call( 3)"
    pd <- styler:::compute_parse_data_nested(string_to_format)
    styler:::pre_visit(pd, c(default_style_guide_attributes))
  }
)
#> # A tibble: 1 × 18
#>   pos_id token terminal text   short token_before token_after stylerignore block
#>    <int> <chr> <lgl>    <chr>  <chr> <chr>        <chr>       <lgl>        <dbl>
#> 1      1 expr  FALSE    call(… call( NA           NA          FALSE            1
#> # … with 9 more variables: is_cached <lgl>, internal <lgl>, child <named list>,
#> #   newlines <int>, lag_newlines <int>, spaces <int>, multi_line <lgl>,
#> #   indention_ref_pos_id <lgl>, indent <dbl>