forked from VimPlug/jedi
Small parser fix.
This commit is contained in:
@@ -203,7 +203,6 @@ def get_params(evaluator, func, var_args):
|
|||||||
keys_used.add(k)
|
keys_used.add(k)
|
||||||
key, va_values = next(var_arg_iterator, (None, ()))
|
key, va_values = next(var_arg_iterator, (None, ()))
|
||||||
|
|
||||||
|
|
||||||
keys = []
|
keys = []
|
||||||
values = []
|
values = []
|
||||||
array_type = None
|
array_type = None
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class Parser(object):
|
|||||||
arr = self.scope_names_stack[-1].setdefault(new_node.value, [])
|
arr = self.scope_names_stack[-1].setdefault(new_node.value, [])
|
||||||
arr.append(new_node)
|
arr.append(new_node)
|
||||||
elif isinstance(new_node, pr.ClassOrFunc) \
|
elif isinstance(new_node, pr.ClassOrFunc) \
|
||||||
and raw_node[0] in (pytree.python_symbols.funcdef, pytree.python_symbols.funcdef):
|
and raw_node[0] in (pytree.python_symbols.funcdef, pytree.python_symbols.classdef):
|
||||||
# scope_name_stack handling
|
# scope_name_stack handling
|
||||||
n = new_node.name
|
n = new_node.name
|
||||||
scope_names = self.scope_names_stack.pop()
|
scope_names = self.scope_names_stack.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user