def METHOD_NAME(self, cursor=None, level = 0, **kwargs):
    """
    A tool for dumping the cursor tree.
    """
    if cursor == None:
        cursor = self._translation_unit.cursor,
    recursive = kwargs.pop('recursive', True)
    for c in cursor.get_children():
        print(' '*4*level, c.kind, c.spelling, c.extent.start.file, c.extent.start.line)
        if recursive and c.get_children():
            self.METHOD_NAME(c, level+1)