mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 17:15:34 +00:00
[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
|
@ -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