Merge remote-tracking branch 'frassle/compsize' into develop

This commit is contained in:
thefiddler 2014-03-13 19:34:58 +01:00
commit baee71070e
3 changed files with 29 additions and 0 deletions

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);

View file

@ -192,6 +192,17 @@ namespace Bind.Structures
#endregion
#region public string ComputeSize
string computeSize;
public string ComputeSize
{
get { return computeSize; }
set { computeSize = value; }
}
#endregion
#region Static Members
// Returns the FlowDirection that matches the specified string

View file

@ -312,6 +312,14 @@ namespace Bind
}
}
}
p.ComputeSize = param.GetAttribute("count", String.Empty).Trim();
if (p.ComputeSize.StartsWith("COMPSIZE"))
{
//remove the compsize hint, just keep comma delimited param names
var len = "COMPSIZE(".Length;
p.ComputeSize = p.ComputeSize.Substring(len, (p.ComputeSize.Length - len) - 1);
}
p.Flow = Parameter.GetFlowDirection(param.GetAttribute("flow", String.Empty).Trim());