public static FindChildrenOf ( Node node, string childNameTree ) : |
||
node | Node | |
childNameTree | string | |
return |
public override Node ExitAtom(Production node) { Token identifier = (Token)GrammaticaNodeUtils.FindChildOf(node, new string[2] { "Type", "IDENTIFIER" }); // Adds only globalVars. if (identifier != null && !scopeVars.Contains(identifier.GetImage())) { dependencyGraph.SearchDependant(identifier.GetImage()).AddCallsBy(functionScope); } ArrayList identifiers = GrammaticaNodeUtils.FindChildrenOf(node, new string[2] { "Identifier_Composed_Required", "IDENTIFIER" }); // Adds only globalVars. for (int i = 0; i < identifiers.Count; i++) { if (!scopeVars.Contains(((Token)identifiers[i]).GetImage())) { dependencyGraph.SearchDependant(((Token)identifiers[i]).GetImage()).AddCallsBy(functionScope); } } return(node); }