mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 06:25:32 +00:00
Correct keyword spacing in Generator.Bind.
This commit is contained in:
parent
6ea763c821
commit
1260fd0a6b
|
@ -709,13 +709,13 @@ namespace Bind
|
||||||
if (!String.IsNullOrEmpty(p.ComputeSize))
|
if (!String.IsNullOrEmpty(p.ComputeSize))
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
if(Int32.TryParse(p.ComputeSize, out count))
|
if (Int32.TryParse(p.ComputeSize, out count))
|
||||||
{
|
{
|
||||||
attributes.Add(String.Format("CountAttribute(Count = {0})", count));
|
attributes.Add(String.Format("CountAttribute(Count = {0})", count));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(p.ComputeSize.StartsWith("COMPSIZE"))
|
if (p.ComputeSize.StartsWith("COMPSIZE"))
|
||||||
{
|
{
|
||||||
//remove the compsize hint, just keep comma delimited param names
|
//remove the compsize hint, just keep comma delimited param names
|
||||||
var len = "COMPSIZE(".Length;
|
var len = "COMPSIZE(".Length;
|
||||||
|
@ -729,7 +729,7 @@ namespace Bind
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(attributes.Count != 0)
|
if (attributes.Count != 0)
|
||||||
{
|
{
|
||||||
sb.Append("[");
|
sb.Append("[");
|
||||||
sb.Append(string.Join(", ", attributes));
|
sb.Append(string.Join(", ", attributes));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<Rule Id="SA0002" Action="Error" /> <!-- Invalid settings file -->
|
<Rule Id="SA0002" Action="Error" /> <!-- Invalid settings file -->
|
||||||
|
|
||||||
<!-- Spacing rules -->
|
<!-- Spacing rules -->
|
||||||
<Rule Id="SA1000" Action="None" /> <!-- Keywords must be spaced correctly -->
|
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
|
||||||
<Rule Id="SA1001" Action="None" /> <!-- Commas must be spaced correctly -->
|
<Rule Id="SA1001" Action="None" /> <!-- Commas must be spaced correctly -->
|
||||||
<Rule Id="SA1002" Action="None" /> <!-- Semicolons must be spaced correctly -->
|
<Rule Id="SA1002" Action="None" /> <!-- Semicolons must be spaced correctly -->
|
||||||
<Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
|
<Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
|
||||||
|
|
Loading…
Reference in a new issue