mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 07:15:28 +00:00
Correct method generation to account for SA1001.
This commit is contained in:
parent
cab25daf16
commit
048207425b
|
@ -662,15 +662,13 @@ namespace Bind
|
|||
if (f.Parameters.HasGenericParameters)
|
||||
{
|
||||
sb.Append("<");
|
||||
foreach (Parameter p in f.Parameters)
|
||||
foreach (Parameter p in f.Parameters.Where(p => p.Generic))
|
||||
{
|
||||
if (p.Generic)
|
||||
{
|
||||
sb.Append(p.CurrentType);
|
||||
sb.Append(",");
|
||||
}
|
||||
sb.Append(p.CurrentType);
|
||||
sb.Append(", ");
|
||||
}
|
||||
sb.Remove(sb.Length - 1, 1);
|
||||
|
||||
sb.Remove(sb.Length - 2, 2);
|
||||
sb.Append(">");
|
||||
}
|
||||
|
||||
|
@ -679,12 +677,9 @@ namespace Bind
|
|||
if (f.Parameters.HasGenericParameters)
|
||||
{
|
||||
sb.AppendLine();
|
||||
foreach (Parameter p in f.Parameters)
|
||||
foreach (Parameter p in f.Parameters.Where(p => p.Generic))
|
||||
{
|
||||
if (p.Generic)
|
||||
{
|
||||
sb.AppendLine(String.Format(" where {0} : struct", p.CurrentType));
|
||||
}
|
||||
sb.AppendLine(String.Format(" where {0} : struct", p.CurrentType));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue