Move get_node() to tree_node and replace all the custom classdefs/funcdefs.

This commit is contained in:
Dave Halter
2017-01-05 23:43:12 +01:00
parent b44f0aae5d
commit ae8e43d3c7
24 changed files with 90 additions and 99 deletions

View File

@@ -257,7 +257,7 @@ def test_string_literals():
""")
script = jedi.Script(dedent(source))
script._get_module().module_node.end_pos == (6, 0)
script._get_module().tree_node.end_pos == (6, 0)
assert script.completions()
@@ -275,7 +275,7 @@ def test_decorator_string_issue():
s = jedi.Script(source)
assert s.completions()
assert s._get_module().module_node.get_code() == source
assert s._get_module().tree_node.get_code() == source
def test_round_trip():