mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 08:11:50 +08:00
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
|
return result
|
||||||
|
|
||||||
def get_execution_parent(element, *stop_classes):
|
def get_execution_parent(element, *stop_classes):
|
||||||
|
""" Used to get an Instance/Execution parent """
|
||||||
if isinstance(element, evaluate.Array):
|
if isinstance(element, evaluate.Array):
|
||||||
stmt = element._array.parent_stmt()
|
stmt = element._array.parent_stmt()
|
||||||
else:
|
else:
|
||||||
@@ -244,6 +245,7 @@ def _check_array_additions(compare_array, module, is_list):
|
|||||||
evaluate.follow_statement.pop_stmt()
|
evaluate.follow_statement.pop_stmt()
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
def check_array_instances(instance):
|
def check_array_instances(instance):
|
||||||
if not settings.dynamic_arrays_instances:
|
if not settings.dynamic_arrays_instances:
|
||||||
return instance.var_args
|
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.
|
# TODO here should stand evaluate.Instance() and so on.
|
||||||
# need to understand list comprehensions
|
# need to understand list comprehensions
|
||||||
#?
|
##?
|
||||||
el = list(evaluate.get_names_for_scope())[0][1][0]
|
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