Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small detail on a do-while statement that breaks #231

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

Janther
Copy link
Contributor

@Janther Janther commented Feb 18, 2020

Before PR:

do
    a = a.add(LONG_VARIABLE).add(LONG_VARIABLE).add(
        LONG_VARIABLE
    ); while (a < 200);

After PR:

do
    a = a.add(LONG_VARIABLE).add(LONG_VARIABLE).add(LONG_VARIABLE);
while (a < 200);

@codecov
Copy link

codecov bot commented Feb 18, 2020

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #231   +/-   ##
========================================
  Coverage          ?   99.2%           
========================================
  Files             ?      78           
  Lines             ?     631           
  Branches          ?     102           
========================================
  Hits              ?     626           
  Misses            ?       5           
  Partials          ?       0
Impacted Files Coverage Δ
src/nodes/DoWhileStatement.js 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 618a1b6...d9efb8d. Read the comment docs.

Copy link
Member

@mattiaerre mattiaerre left a comment

Choose a reason for hiding this comment

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

good catch

};

const DoWhileStatement = {
print: ({ node, path, print }) =>
concat([
'do',
printBody(node, path, print),
' while (',
'while (',
Copy link
Member

Choose a reason for hiding this comment

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

oh yeah!

@mattiaerre mattiaerre merged commit 41aaf09 into master Feb 19, 2020
@mattiaerre mattiaerre deleted the cleanup_do_while branch February 19, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants