forked from VimPlug/jedi
Make it more clear for debugging where dynamic search ended
This commit is contained in:
+18
-16
@@ -75,22 +75,24 @@ def search_params(evaluator, execution_context, funcdef):
|
|||||||
|
|
||||||
debug.dbg('Dynamic param search in %s.', funcdef.name.value, color='MAGENTA')
|
debug.dbg('Dynamic param search in %s.', funcdef.name.value, color='MAGENTA')
|
||||||
|
|
||||||
module_context = execution_context.get_root_context()
|
try:
|
||||||
function_executions = _search_function_executions(
|
module_context = execution_context.get_root_context()
|
||||||
evaluator,
|
function_executions = _search_function_executions(
|
||||||
module_context,
|
evaluator,
|
||||||
funcdef
|
module_context,
|
||||||
)
|
funcdef
|
||||||
if function_executions:
|
)
|
||||||
zipped_params = zip(*list(
|
if function_executions:
|
||||||
function_execution.get_params()
|
zipped_params = zip(*list(
|
||||||
for function_execution in function_executions
|
function_execution.get_params()
|
||||||
))
|
for function_execution in function_executions
|
||||||
params = [MergedExecutedParams(executed_params) for executed_params in zipped_params]
|
))
|
||||||
# Evaluate the ExecutedParams to types.
|
params = [MergedExecutedParams(executed_params) for executed_params in zipped_params]
|
||||||
else:
|
# Evaluate the ExecutedParams to types.
|
||||||
return create_default_params(execution_context, funcdef)
|
else:
|
||||||
debug.dbg('Dynamic param result finished', color='MAGENTA')
|
return create_default_params(execution_context, funcdef)
|
||||||
|
finally:
|
||||||
|
debug.dbg('Dynamic param result finished', color='MAGENTA')
|
||||||
return params
|
return params
|
||||||
finally:
|
finally:
|
||||||
evaluator.dynamic_params_depth -= 1
|
evaluator.dynamic_params_depth -= 1
|
||||||
|
|||||||
Reference in New Issue
Block a user