mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 08:06:59 +00:00
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:
parent
0c89435add
commit
641225a312
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue