Add length helper text to params.

If a param has ComputeSize text add [length: {0}] helper text to the documentation.
This commit is contained in:
Fraser Waters 2014-03-10 22:13:53 +00:00
parent 0c89435add
commit 641225a312

View file

@ -327,6 +327,16 @@ namespace Bind
docs[0] = docs[0].Insert(summary_start, category);
}
foreach (var param in f.WrappedDelegate.Parameters)
{
var index = docs.IndexOf("/// <param name=\"" + param.Name +"\">");
if (index != -1 && param.ComputeSize != "")
{
var compute_size = string.Format("[length: {0}]", param.ComputeSize);
docs[index] = docs[index] + compute_size;
}
}
foreach (var doc in docs)
{
sw.WriteLine(doc);