Fixes #2353. Use the same printing code for both `WhileStatement` and `DoWhileStatement`. Fix calculation of `isInsideParenthesis` when printing a `LogicalExpression`. There is no such thing as `DoStatement` -- it should be `DoWhileStatement`.
15 lines
635 B
JavaScript
15 lines
635 B
JavaScript
if (someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD) {}
|
|
while (someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD) {}
|
|
do {}
|
|
while (someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD);
|
|
|
|
if (someVeryLongFunc(someVeryLongArgA, someVeryLongArgB, someVeryLongArgC, someVeryLongArgD)) {}
|
|
while (someVeryLongFunc(someVeryLongArgA, someVeryLongArgB, someVeryLongArgC, someVeryLongArgD)) {}
|
|
do {}
|
|
while (someVeryLongFunc(someVeryLongArgA, someVeryLongArgB, someVeryLongArgC, someVeryLongArgD));
|
|
|
|
while (0) 1;
|
|
|
|
do 1;
|
|
while (0);
|