forked from VimPlug/jedi
Start implementing an algorithm for actually evaluating the parser tree.
This commit is contained in:
@@ -57,7 +57,8 @@ class Parser(object):
|
||||
# and only if the refactor method's write parameter was True.
|
||||
logger = logging.getLogger("RefactoringTool")
|
||||
d = Driver(pytree.python_grammar, convert=pytree.convert, logger=logger)
|
||||
self.module = d.parse_string(source)
|
||||
print(repr(source))
|
||||
self.module = d.parse_string(source).get_parent_until()
|
||||
|
||||
def __init__old__(self, source, module_path=None, no_docstr=False,
|
||||
tokenizer=None, top_module=None):
|
||||
|
||||
Reference in New Issue
Block a user