Correct method generation to account for SA1001.

This commit is contained in:
Jarl Gullberg 2017-07-28 12:56:20 +02:00
parent cab25daf16
commit 048207425b
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -662,15 +662,13 @@ namespace Bind
if (f.Parameters.HasGenericParameters)
{
sb.Append("<");
foreach (Parameter p in f.Parameters)
{
if (p.Generic)
foreach (Parameter p in f.Parameters.Where(p => p.Generic))
{
sb.Append(p.CurrentType);
sb.Append(",");
sb.Append(", ");
}
}
sb.Remove(sb.Length - 1, 1);
sb.Remove(sb.Length - 2, 2);
sb.Append(">");
}
@ -679,14 +677,11 @@ namespace Bind
if (f.Parameters.HasGenericParameters)
{
sb.AppendLine();
foreach (Parameter p in f.Parameters)
{
if (p.Generic)
foreach (Parameter p in f.Parameters.Where(p => p.Generic))
{
sb.AppendLine(String.Format(" where {0} : struct", p.CurrentType));
}
}
}
return sb.ToString();
}