cache_find_block: Find the groups of expressions that should be processed...

Description Usage Arguments Details

View source: R/transform-block.R


Every expression is an expression itself, Expressions on same line are in same block. Multiple expressions can sit on one row, e.g. in line comment and commands separated with ";". This creates a problem when processing each expression separately because when putting them together, we need complicated handling of line breaks between them, as it is not apriori clear that there is a line break separating them. To avoid this, we put top level expressions that sit on the same line into one block, so the assumption that there is a line break between each block of expressions holds.





A top level nest.


we want to for turning points:

krlmlr/styler documentation built on Jan. 17, 2022, 2:04 p.m.