Skip to content

Commit

Permalink
Fix #3227: Only call NewLine() in case no property initializer is pre…
Browse files Browse the repository at this point in the history
…sent.
  • Loading branch information
siegfriedpammer committed Jul 31, 2024
1 parent dbd9632 commit 065e7ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2694,7 +2694,11 @@ public virtual void VisitPropertyDeclaration(PropertyDeclaration propertyDeclara
propertyDeclaration.Initializer.AcceptVisitor(this);
Semicolon();
}
NewLine();
else
{
// The call to Semicolon() above prints a newline too
NewLine();
}
}
else
{
Expand Down

0 comments on commit 065e7ec

Please sign in to comment.