Browse Source

Reduce nesting in CSharpSources.GenerateComment.

pull/818/head
Joao Matos 9 years ago
parent
commit
9aeaf26f89
  1. 5
      src/Generator/Generators/CSharp/CSharpSources.cs

5
src/Generator/Generators/CSharp/CSharpSources.cs

@ -362,9 +362,9 @@ namespace CppSharp.Generators.CSharp
PushBlock(BlockKind.BlockComment); PushBlock(BlockKind.BlockComment);
WriteLine(comment.FullComment.CommentToString(Options.CommentPrefix)); WriteLine(comment.FullComment.CommentToString(Options.CommentPrefix));
PopBlock(); PopBlock();
return;
} }
else
{
if (string.IsNullOrWhiteSpace(comment.BriefText)) if (string.IsNullOrWhiteSpace(comment.BriefText))
return; return;
@ -376,7 +376,6 @@ namespace CppSharp.Generators.CSharp
WriteLine("{0} </summary>", Options.CommentPrefix); WriteLine("{0} </summary>", Options.CommentPrefix);
PopBlock(); PopBlock();
} }
}
public void GenerateInlineSummary(RawComment comment) public void GenerateInlineSummary(RawComment comment)
{ {

Loading…
Cancel
Save