void Walk(CommonTree tree) { if (tree.IsFunction()) { AddMethod(tree); } if (tree.HasChildren()) { WalkChildren(tree.Children); } }