1
0
forked from VimPlug/jedi

Fix an extract case about "not"

This commit is contained in:
Dave Halter
2020-02-21 03:03:48 +01:00
parent 3bc66c2f00
commit 0516637e8d
2 changed files with 51 additions and 18 deletions

View File

@@ -97,12 +97,12 @@ class Foo(x):
#? 12 error {'new_name': 'x'}
def x(): pass
# ++++++++++++++++++++++++++++++++++++++++++++++++++
Cannot extract a "keyword"
Cannot extract a "simple_stmt"
# -------------------------------------------------- keyword-continue
#? 5 error {'new_name': 'x'}
continue
# ++++++++++++++++++++++++++++++++++++++++++++++++++
Cannot extract a "keyword"
Cannot extract a "simple_stmt"
# -------------------------------------------------- keyword-None
if 1:
#? 4 text {'new_name': 'x'}
@@ -219,3 +219,10 @@ Cannot extract a "if_stmt"
x = foo = 4
# ++++++++++++++++++++++++++++++++++++++++++++++++++
Cannot extract a name that defines something
# -------------------------------------------------- keyword-None
#? 4 text {'new_name': 'x', 'until_column': 7}
yy = not foo or bar
# ++++++++++++++++++++++++++++++++++++++++++++++++++
#? 4 text {'new_name': 'x', 'until_column': 7}
x = not foo
yy = x or bar