forked from VimPlug/jedi
Make Leaf public
This commit is contained in:
@@ -330,7 +330,6 @@ class NameFinder(object):
|
||||
return doc_params
|
||||
|
||||
if not isinstance(param, ExecutedParam):
|
||||
print(param)
|
||||
# Param owns no information itself.
|
||||
res_new += dynamic.search_params(evaluator, param)
|
||||
if not res_new:
|
||||
|
||||
@@ -297,10 +297,8 @@ def _unpack_var_args(evaluator, var_args, func):
|
||||
# Include self at this place.
|
||||
argument_list.append((None, [helpers.FakeStatement([func.instance])]))
|
||||
|
||||
print(var_args)
|
||||
# `var_args` is typically an Array, and not a list.
|
||||
for stmt in _reorder_var_args(var_args.iterate()):
|
||||
print(stmt)
|
||||
if not isinstance(stmt, pr.Statement):
|
||||
if stmt is None:
|
||||
argument_list.append((None, []))
|
||||
|
||||
@@ -235,7 +235,7 @@ def get_instance_el(evaluator, instance, var, is_class_var=False):
|
||||
Returns an InstanceElement if it makes sense, otherwise leaves the object
|
||||
untouched.
|
||||
"""
|
||||
if isinstance(var, (Instance, compiled.CompiledObject, pr.Operator, Token,
|
||||
if isinstance(var, (Instance, compiled.CompiledObject, pr.Leaf,
|
||||
pr.Module, FunctionExecution, pr.Name)):
|
||||
if isinstance(var, pr.Name):
|
||||
# TODO temp solution, remove later, Name should never get
|
||||
|
||||
Reference in New Issue
Block a user