PHP.Core.CompilerConfiguration.ProcessNodes C# (CSharp) Method

ProcessNodes() private method

Recursively handles loading of the configuration file sections, to handle the inheritance properly
private ProcessNodes ( PHP.Core.ApplicationContext appContext, XmlNode root, LibrariesConfigurationList addedLibraries ) : void
appContext PHP.Core.ApplicationContext Application context where to load libraries.
root XmlNode Root to parse child nodes from
addedLibraries LibrariesConfigurationList List of class libraries that are collected while parsing configuration node.
return void
        private void ProcessNodes(ApplicationContext appContext, XmlNode root, LibrariesConfigurationList/*!*/addedLibraries)
        {
            foreach (XmlNode node in root.ChildNodes) {
                if (node.NodeType == XmlNodeType.Element) {
                    switch (node.Name) {
                        case Configuration.SectionName:
                            Parse(appContext, node, addedLibraries);
                            break;

                        case Configuration.LocationName:
                            // Recursively parse the Web.config file to include everything in the <location> element
                            ProcessNodes(appContext, node, addedLibraries);
                            break;

                        case "system.web":
                            ParseSystemWebSection(node);
                            break;
                    }
                }
            }
        }