protected void VisitNode(FieldDcls node) { // Get list of MethodDecls and list of MethodDcl and visit each List <MethodDcl> methodDclChildren = Utilities.GetChildren(node, typeof(MethodDcl)).Cast <MethodDcl>().ToList(); foreach (MethodDcl md in methodDclChildren) { this.VisitNode(md); } }
public void VisitNode(FieldDcls node) { // Create a list of method children List <MethodDcl> methodDclChildren = Utilities.GetChildren(node, typeof(MethodDcl)).Cast <MethodDcl>().ToList(); // Visit all methods (reverse order to go top down for (int i = methodDclChildren.Count - 1; i >= 0; i--) { this.VisitNode(methodDclChildren[i]); } }