PHPAnalysis.CTLLTLProgram.ExtractFunctions C# (CSharp) Метод

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

private static ExtractFunctions ( XmlDocument>.KeyValuePair parsedFile ) : void
parsedFile XmlDocument>.KeyValuePair
Результат void
        private static void ExtractFunctions(KeyValuePair<string, XmlDocument> parsedFile)
        {
            var traverser = new XmlTraverser ();
            var extractor = new ClassAndFunctionExtractor ();
            traverser.AddVisitor (extractor);
            traverser.Traverse (parsedFile.Value.FirstChild.NextSibling);
            FunctionsHandler.Instance.CustomFunctions.AddRange (extractor.Functions);
            foreach (var @class in extractor.Classes) {
                foreach (var method in @class.Methods) {
                    //HACK: This is not a good way to handle this! Should we add a new derived function class called method that includes the class name
                    //-||-: and make a special list for them in the function handler, or is this okay?
                    method.Name = @class.Name + "->" + method.Name;
                    FunctionsHandler.Instance.CustomFunctions.Add (method);
                }
            }
        }