def DefaultNodeVisit(self, node): # Dump information about the current node, and then use the generic # DefaultNodeVisit visitor to dump each of its children. self._DumpString(pytree_utils.DumpNodeToString(node)) self._current_indent += 2 super(PyTreeDumper, self).DefaultNodeVisit(node) self._current_indent -= 2
def DefaultLeafVisit(self, leaf): self._DumpString(pytree_utils.DumpNodeToString(leaf))