Adds line and col information to an expression from its child
Concentrate newlines or spaces in a string
Add information about previous / next token to each terminal
Checks if all arguments of column 1 are named
Ensure the closing brace of the call is removed
Check if spacing around comma is correct
Applying reference indention of a target token
Ensure correct positional information for stylerignore expressions
Make sure all supplied file types are allowed
Assert text to be of positive length and replace it with the empty string otherwise.
Bind a parse table with one of its children
Find the groups of expressions that should be processed together
Remember the past to be quicker in the future
Check whether a round trip verification can be carried out
Capture and post-process the output of 'style_file' without causing side effects
Choose the indention method for the tokens
Obtain a nested parse table from a character vector
Construct paths of a tree object given the paths of *-in.R files
Check whether an else expression needs braces
Update the a parse table given outer context
Replace the newline character with a line break
Convert a nested tibble into a node tree
Initialize default style guide attributes
Drop all children of a top level expression that are cached
Enhance the mapping of text to the token "SPECIAL"
Ensure a correct 'text' of all strings and numeric constants
Ensure there is one (and only one) blank line at the end of a vector
Add positional information of token to next terminal
The elements that are added to this environment are:
Check whether two expressions are identical
Find the index of the last comment in the sequence of comments-only tokens after the token that has position 'pos' in 'pd'.
Find index of the token before which the line should be broken
Find legit starting value for a new positional id
Find the tokens to update when applying a reference indention
Replace single quotes with double quotes
Flatten some token in the nested parse table based on operators
Flatten one level of nesting with its child
Generate a comprehensive collection test cases for comment / insertion interaction Test consist of if / if-else / if-else-if-else cases, paired with various line-break and comment configurations. Used for internal testing.
What's the engine pattern for rmd code chunks?
Figure out where code examples start and stop
Check if if, for or while loop expression require a braces.
Identify spinning code chunk header or xaringan
Identify strings that were not fully parsed
Check whether a parse table contains a tilde
Lookup which new tokens were created from "SPECIAL"
Lookup all tokens that have a unique token-text mapping
Closure to return a transformer function
Map the file type to a corresponding regular expression
Times two function calls with temporarily enabled cache
Check if rd emulation is required with 'roxygen2::roc_proc_text()'
Find the index of the next or previous non-comment in a parse table.
Parse, transform and serialize a nested parse table
Parse, transform and serialize roxygen comments
Check whether a parse table corresponds to a certain expression
Check whether a parse table is a multi-line token
Prettify R code in current working directory
Convert a serialized R object to a certain version.
Drop-in replacement for 'xfun::read_utf8()', with an optional 'warn' argument.
Relocate the expressions containing the token 'EQ_ASSIGN' within the nested parse table
Relocate all assignment expressions that contain 'EQ_ASSIGN' within a _nest_
Repeat elements of a character vector 'times' times and collapse it
Heuristic to see if a file styled with the addin should be saved or not.
Convert the styling scope to its lower-level representation
Separate chunks within Rmd and Rnw contents
Sets line break after opening parenthesis
Set line break for multi-line function calls
Set indention of tokens that match regex
Specify which tokens must be absent for a transformer to be dropped
Split text into roxygen and non-roxygen example segments
Wrapper around 'style_pkg()' for access via Addin.
Style a roxygen code example that may contain dontrun and friends
Style a roxygen code example with exactly one @example or @exampleIf
Given a code snippet is dont* or run, style it
Styles the highlighted selection in a '.R' or '.Rmd' file.
Transforming test input with a transformer function
Creates a flat parse table with minimal initialization
Transform a file and output a customized message
Transform files with transformer functions
Apply a function to the contents of a file
Revert the indention of function declaration header
Update indention information of parse data
Transform a flat parse table with a list of transformers
Wrap if-else, while and for statements in curly braces
Wrap a multi-line statement in curly braces