Skip to content
Browse files

[Bind] Do not skip parameters in documentation

Multiple parameters may share a single description. The DocProcessor
will now correctly generate DocumentationParameters for each of them.
  • Loading branch information...
1 parent d1b9921 commit 61791c91db0496caecd2ead40648c18103b44ac8 @thefiddler thefiddler committed Mar 30, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 Source/Bind/DocProcessor.cs
View
12 Source/Bind/DocProcessor.cs
@@ -100,12 +100,12 @@ Documentation ToInlineDocs(XDocument doc)
((IEnumerable)doc.XPathEvaluate("/refentry/refnamediv/refpurpose"))
.Cast<XElement>().First().Value),
Parameters =
- ((IEnumerable)doc.XPathEvaluate("/refentry/refsect1[@id='parameters']/variablelist/varlistentry"))
- .Cast<XNode>()
- .Select(p =>
- new DocumentationParameter(
- p.XPathSelectElement("term/parameter").Value.Trim(),
- Cleanup(p.XPathSelectElement("listitem").Value)))
+ ((IEnumerable)doc.XPathEvaluate("/refentry/refsect1[@id='parameters']/variablelist/varlistentry/term/parameter"))
+ .Cast<XElement>()
+ .Select(p =>
+ new DocumentationParameter(
+ p.Value.Trim(),
+ Cleanup(p.XPathSelectElement("../../listitem").Value)))
.ToList()
};

0 comments on commit 61791c9

Please sign in to comment.
Something went wrong with that request. Please try again.