We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if
1 parent faa2033 commit e347966Copy full SHA for e347966
crates/oxc_formatter/src/write/mod.rs
@@ -642,7 +642,7 @@ impl<'a> Format<'a> for FormatCommentForEmptyStatement<'a, '_> {
642
struct FormatTestOfIfAndWhileStatement<'a, 'b>(&'b AstNode<'a, Expression<'a>>);
643
impl<'a> Format<'a> for FormatTestOfIfAndWhileStatement<'a, '_> {
644
fn fmt(&self, f: &mut Formatter<'_, 'a>) -> FormatResult<()> {
645
- FormatExpressionWithoutTrailingComments(self.0).fmt(f);
+ FormatNodeWithoutTrailingComments(self.0).fmt(f);
646
let comments = f.context().comments().comments_before_character(self.0.span().end, b')');
647
if !comments.is_empty() {
648
write!(f, [space(), FormatTrailingComments::Comments(comments)])?;
0 commit comments