From 61791c91db0496caecd2ead40648c18103b44ac8 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 30 Mar 2014 19:16:30 +0200 Subject: [PATCH] [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. --- Source/Bind/DocProcessor.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Bind/DocProcessor.cs b/Source/Bind/DocProcessor.cs index b26b8fee..d36c9142 100644 --- a/Source/Bind/DocProcessor.cs +++ b/Source/Bind/DocProcessor.cs @@ -100,12 +100,12 @@ namespace Bind ((IEnumerable)doc.XPathEvaluate("/refentry/refnamediv/refpurpose")) .Cast().First().Value), Parameters = - ((IEnumerable)doc.XPathEvaluate("/refentry/refsect1[@id='parameters']/variablelist/varlistentry")) - .Cast() - .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() + .Select(p => + new DocumentationParameter( + p.Value.Trim(), + Cleanup(p.XPathSelectElement("../../listitem").Value))) .ToList() };