AGS.Editor.AutoComplete.AdjustFunctionListForExtenderFunction C# (CSharp) Метод

AdjustFunctionListForExtenderFunction() приватный статический Метод

private static AdjustFunctionListForExtenderFunction ( List structs, List &functionList, FastString &script ) : void
structs List
functionList List
script AGS.CScript.Compiler.FastString
Результат void
        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;
        }