forked from VimPlug/jedi
new jedi test, which is working pretty good
This commit is contained in:
@@ -203,6 +203,7 @@ def _check_array_additions(compare_array, module, is_list):
|
||||
return result
|
||||
|
||||
def get_execution_parent(element, *stop_classes):
|
||||
""" Used to get an Instance/Execution parent """
|
||||
if isinstance(element, evaluate.Array):
|
||||
stmt = element._array.parent_stmt()
|
||||
else:
|
||||
@@ -244,6 +245,7 @@ def _check_array_additions(compare_array, module, is_list):
|
||||
evaluate.follow_statement.pop_stmt()
|
||||
return res
|
||||
|
||||
|
||||
def check_array_instances(instance):
|
||||
if not settings.dynamic_arrays_instances:
|
||||
return instance.var_args
|
||||
|
||||
7
test/completion/thirdparty/jedi_.py
vendored
7
test/completion/thirdparty/jedi_.py
vendored
@@ -33,5 +33,10 @@ 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.Scope((0,0)).get_set_vars()[0]
|
||||
|
||||
Reference in New Issue
Block a user