mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Formatting cleanup.
This commit is contained in:
@@ -676,20 +676,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
|
||||
// It's possible that we don't have an assignment, in which case
|
||||
// the child will be null and we only print the semicolon.
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^
|
||||
ForLoopStatement s = (ForLoopStatement) fl.kids.Pop();
|
||||
if (null != s)
|
||||
{
|
||||
retstr += GenerateForLoopStatement(s);
|
||||
}
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^^
|
||||
retstr += GenerateNode((SYMBOL) fl.kids.Pop());
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^
|
||||
retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop());
|
||||
retstr += GenerateLine(")");
|
||||
|
||||
|
||||
@@ -573,7 +573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
display--;
|
||||
|
||||
string severity = "Error";
|
||||
if ( CompErr.IsWarning )
|
||||
if (CompErr.IsWarning)
|
||||
{
|
||||
severity = "Warning";
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
// It's possible that a child is null, for instance when the
|
||||
// assignment part in a for-loop is left out, ie:
|
||||
//
|
||||
// for ( ; i < 10; i++)
|
||||
// for (; i < 10; i++)
|
||||
// {
|
||||
// ...
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user