cosmetics

This commit is contained in:
UbitUmarov
2022-12-15 22:19:09 +00:00
parent b62280617d
commit 41b718626f
10 changed files with 48 additions and 54 deletions

View File

@@ -68,12 +68,14 @@ namespace OpenSim.Region.ScriptEngine.Yengine
TokenName name = new TokenName(null, param.Name);
argDecl.AddArg(type, name);
}
TokenDeclVar declFunc = new TokenDeclVar(null, null, null);
declFunc.name = new TokenName(null, key);
declFunc.retType = TokenType.FromSysType(null, ifaceMethod.ReturnType);
declFunc.argDecl = argDecl;
TokenDeclVar declFunc = new TokenDeclVar(null, null, null)
{
name = new TokenName(null, key),
retType = TokenType.FromSysType(null, ifaceMethod.ReturnType),
argDecl = argDecl
};
// Add the TokenDeclVar struct to the dictionary.
// Add the TokenDeclVar struct to the dictionary.
this.AddEntry(declFunc);
}
catch(Exception except)
@@ -82,7 +84,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
string msg = except.ToString();
int i = msg.IndexOf("\n");
if(i > 0)
msg = msg.Substring(0, i);
msg = msg[..i];
Console.WriteLine("InternalFuncDict*: {0}: {1}", key, msg);
///??? IGNORE ANY THAT FAIL - LIKE UNRECOGNIZED TYPE ???///