private static void AdjustFunctionListForExtenderFunction(List<ScriptStruct> structs, ref List<ScriptFunction> functionList, ref FastString script)
{
GetNextWord(ref script);
string structName = GetNextWord(ref script);
while ((script.Length > 0) && (script[0] != ',') && (script[0] != ')'))
{
script = script.Substring(1);
}
if ((script.Length > 0) && script[0] == ',')
{
script = script.Substring(1);
}
script = script.Trim();
foreach (ScriptStruct struc in structs)
{
if (struc.Name == structName)
{
functionList = struc.Functions;
return;
}
}
ScriptStruct newStruct = new ScriptStruct(structName);
functionList = newStruct.Functions;
structs.Add(newStruct);
return;
}