forked from VimPlug/jedi
Remove final bugs from the execute_nodes implementation.
This commit is contained in:
@@ -280,10 +280,6 @@ testlist_star_expr # should probably just work with expr_stmt
|
|||||||
star_expr
|
star_expr
|
||||||
exprlist # just ignore? then names are just resolved. Strange anyway, bc expr is not really allowed in the list, typically.
|
exprlist # just ignore? then names are just resolved. Strange anyway, bc expr is not really allowed in the list, typically.
|
||||||
|
|
||||||
# always execute function arguments? -> no problem with stars.
|
|
||||||
arglist
|
|
||||||
argument
|
|
||||||
|
|
||||||
----------- ignore:
|
----------- ignore:
|
||||||
suite
|
suite
|
||||||
subscriptlist
|
subscriptlist
|
||||||
@@ -295,6 +291,11 @@ dictorsetmaker
|
|||||||
trailer
|
trailer
|
||||||
decorators
|
decorators
|
||||||
decorated
|
decorated
|
||||||
|
# always execute function arguments? -> no problem with stars.
|
||||||
|
# Also arglist and argument are different in different grammars.
|
||||||
|
arglist
|
||||||
|
argument
|
||||||
|
|
||||||
|
|
||||||
----------- remove:
|
----------- remove:
|
||||||
tname # only exists in current Jedi parser. REMOVE!
|
tname # only exists in current Jedi parser. REMOVE!
|
||||||
|
|||||||
@@ -488,7 +488,8 @@ class Node(BaseNode):
|
|||||||
|
|
||||||
_IGNORE_EXECUTE_NODES = set([
|
_IGNORE_EXECUTE_NODES = set([
|
||||||
'suite', 'subscriptlist', 'subscript', 'simple_stmt', 'sliceop',
|
'suite', 'subscriptlist', 'subscript', 'simple_stmt', 'sliceop',
|
||||||
'testlist_comp', 'dictorsetmaker', 'trailer', 'decorators', 'decorated'
|
'testlist_comp', 'dictorsetmaker', 'trailer', 'decorators',
|
||||||
|
'decorated', 'arglist', 'argument'
|
||||||
])
|
])
|
||||||
|
|
||||||
def __init__(self, type, children):
|
def __init__(self, type, children):
|
||||||
|
|||||||
Reference in New Issue
Block a user