Browse Source

Fix #3227: Only call NewLine() in case no property initializer is present.

pull/3250/head
Siegfried Pammer 10 months ago
parent
commit
065e7eca1d
  1. 6
      ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpOutputVisitor.cs

6
ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpOutputVisitor.cs

@ -2694,7 +2694,11 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor @@ -2694,7 +2694,11 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
propertyDeclaration.Initializer.AcceptVisitor(this);
Semicolon();
}
NewLine();
else
{
// The call to Semicolon() above prints a newline too
NewLine();
}
}
else
{

Loading…
Cancel
Save