'Parses a block into a tree.
This is necessary to get correct line number / offset information
in the parser diagnostics and embedded into the parse tree.'

def parse_block(self, block, lineno, indent):

    tree = self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
    tree.future_features = frozenset()
    return tree
