'Transform an AST into a modified parse tree.'

def transform(self, tree):

    if (not (isinstance(tree, tuple) or isinstance(tree, list))):
        tree = parser.st2tuple(tree, line_info=1)
    return self.compile_node(tree)
