/// <summary> /// Indexing of all FunctionDefinitions of this module /// </summary> /// <param name="module">Module to walk through</param> private void IndexFunctionDefinitions(Node module) { foreach (Node currentNode in module.ViewAllNodes()) { if (currentNode.Brand.Text == "FunctionDef") { //Add functiondefinition to symboltable Node functionIdentifier = currentNode.ViewAllNodes().ElementAt(0); SymbolTable.AddFunctionDefinition(functionIdentifier.AtomicValue.ToString(), currentNode); } } }
/// <summary> /// Get sites of module /// </summary> /// <param name="module">Module to get sites from</param> /// <returns>List of site nodes</returns> private List <Node> GetSitesOfModule(Node module) { List <Node> siteList = new List <Node>(); foreach (Node currentNode in module.ViewAllNodes()) { if (currentNode.Brand.Text == "Site") { siteList.Add(currentNode); } } return(siteList); }