Skip to content

Op assignment indention - #99

Merged
lorenzwalthert merged 12 commits into
r-lib:masterfrom
lorenzwalthert:op_assignment_indention
Jul 28, 2017
Merged

lorenzwalthert merged 12 commits into
r-lib:masterfrom
lorenzwalthert:op_assignment_indention

Conversation

@lorenzwalthert

@lorenzwalthert lorenzwalthert commented Jul 28, 2017 •

Copy link
Copy Markdown
Collaborator

fixing:

#97 and #96 was a bit complicated since solving the problem required to further flatten the nested parse tables.

As the assignment operators requires flattening from right, flatten_operators_one was completely redesigned. The flattening itself was outsourced to flatten_pd(), which can flatten from right or left. Within flatten_pd, binding together a parse table and its child was outsourced to bind_with_child
interaction between math tokens and special tokens and assignment

@krlmlr krlmlr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. You need to write "fixes ..." before each # if you want them to be auto-closed when the PR is merged.

Comment thread R/modify_pd.R Outdated
indent_op <- function(pd, indent_by, token = c(math_token,
"SPECIAL-PIPE")) {
"SPECIAL-PIPE",
"LEFT_ASSIGN", "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please double-check.

Comment thread R/relevel.R Outdated
}


#' Flaten one level of nesting with its child

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling.

@codecov

codecov Bot commented Jul 28, 2017

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@e716887). Click here to learn what that means.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #99   +/-   ##
=========================================
  Coverage          ?   91.77%           
=========================================
  Files             ?       18           
  Lines             ?      596           
  Branches          ?        0           
=========================================
  Hits              ?      547           
  Misses            ?       49           
  Partials          ?        0
Impacted Files Coverage Δ
R/serialized_tests.R 100% <ø> (ø)
R/nested.R 100% <ø> (ø)
R/rules-spacing.R 93.87% <ø> (ø)
R/get_transformers.R 96.49% <ø> (ø)
R/token.R 0% <0%> (ø)
R/modify_pd.R 90% <100%> (ø)
R/serialize.R 100% <100%> (ø)
R/transform.R 84.61% <100%> (ø)
R/relevel.R 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e716887...3389c50. Read the comment docs.

@codecov

codecov Bot commented Jul 28, 2017 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@e716887). Click here to learn what that means.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #99   +/-   ##
=========================================
  Coverage          ?   91.77%           
=========================================
  Files             ?       18           
  Lines             ?      596           
  Branches          ?        0           
=========================================
  Hits              ?      547           
  Misses            ?       49           
  Partials          ?        0
Impacted Files Coverage Δ
R/serialized_tests.R 100% <ø> (ø)
R/get_transformers.R 96.49% <ø> (ø)
R/rules-spacing.R 93.87% <ø> (ø)
R/nested.R 100% <ø> (ø)
R/token.R 0% <0%> (ø)
R/modify_pd.R 90% <100%> (ø)
R/transform.R 84.61% <100%> (ø)
R/relevel.R 100% <100%> (ø)
R/serialize.R 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e716887...96d81b9. Read the comment docs.

@lorenzwalthert
lorenzwalthert merged commit 3b09707 into r-lib:master Jul 28, 2017
lorenzwalthert added a commit to lorenzwalthert/styler that referenced this pull request Jan 15, 2022
lorenzwalthert added a commit to lorenzwalthert/styler that referenced this pull request Jan 15, 2022
lorenzwalthert added a commit to lorenzwalthert/styler that referenced this pull request Jan 15, 2022
lorenzwalthert added a commit to lorenzwalthert/styler that referenced this pull request Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants