forked from VimPlug/jedi
added recursion decorator / fast_parent_copy fix
This commit is contained in:
@@ -1,3 +1,27 @@
|
||||
# -----------------
|
||||
# if/else/elif
|
||||
# -----------------
|
||||
|
||||
if 1:
|
||||
1
|
||||
elif(3):
|
||||
a = 3
|
||||
else:
|
||||
a = ''
|
||||
#? int() str()
|
||||
a
|
||||
def func():
|
||||
if 1:
|
||||
1
|
||||
elif(3):
|
||||
a = 3
|
||||
else:
|
||||
a = ''
|
||||
#? int() str()
|
||||
return a
|
||||
#? int() str()
|
||||
func()
|
||||
|
||||
# -----------------
|
||||
# for loops
|
||||
# -----------------
|
||||
|
||||
19
test/completion/thirdparty/jedi_.py
vendored
19
test/completion/thirdparty/jedi_.py
vendored
@@ -31,12 +31,19 @@ el = list(evaluate.get_names_for_scope(1))[0][1]
|
||||
#? list()
|
||||
el = list(evaluate.get_names_for_scope())[0][1]
|
||||
|
||||
# TODO here should stand evaluate.Instance() and so on.
|
||||
# need to understand list comprehensions
|
||||
##?
|
||||
el = list(evaluate.get_names_for_scope())[0][1][0]
|
||||
|
||||
#? list()
|
||||
parsing.Scope((0,0)).get_set_vars()
|
||||
#?
|
||||
#? parsing.Import() parsing.Name()
|
||||
parsing.Scope((0,0)).get_set_vars()[0]
|
||||
# TODO access parent is not possible, because that is not set in the class
|
||||
## parsing.Class()
|
||||
parsing.Scope((0,0)).get_set_vars()[0].parent
|
||||
|
||||
#? parsing.Import() parsing.Name()
|
||||
el = list(evaluate.get_names_for_scope())[0][1][0]
|
||||
|
||||
#? evaluate.Array() evaluate.Class() evaluate.Function() evaluate.Instance()
|
||||
list(evaluate.follow_call())[0]
|
||||
|
||||
#? evaluate.Array() evaluate.Class() evaluate.Function() evaluate.Instance()
|
||||
evaluate.get_scopes_for_name()[0]
|
||||
|
||||
Reference in New Issue
Block a user