Skip to content

Commit

Permalink
Handled some more obscure cases of documenting.
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dobrev <[email protected]>
  • Loading branch information
ddobrev committed Sep 4, 2015
1 parent 2cd357e commit 4f2e8af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions QtSharp/Documentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ public void DocumentFunction(Function function)
f.Attribute("fullname").Value == qualifiedOriginalName &&
f.Descendants("parameter").Count() == @params.Count).ToList();
if (nodes.Count == 0)
{
@params.RemoveAll(p => string.IsNullOrEmpty(p.OriginalName) && p.DefaultArgument != null);
}
nodes = functions.Where(f => f.Attribute("fullname") != null &&
f.Attribute("fullname").Value == qualifiedOriginalName &&
f.Descendants("parameter").Count() == @params.Count).ToList();
if (nodes.Count == 0)
{
var method = function as Method;
if (method != null && !method.IsStatic && function.OriginalFunction == null)
Expand Down

0 comments on commit 4f2e8af

Please sign in to comment.