public static bool HasChildFunctions(FunctionDeclaration root) { return(root.ChildrenRecursive().OfType <FunctionDeclaration>().Any()); }