[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.
This commit is contained in:
parent
d1b99219ba
commit
61791c91db
1 changed files with 6 additions and 6 deletions
|
@ -100,12 +100,12 @@ namespace Bind
|
|||
((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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue