1
0
forked from VimPlug/jedi

Remove final bugs from the execute_nodes implementation.

This commit is contained in:
Dave Halter
2015-09-21 14:43:51 +02:00
parent 1e8dba9253
commit f455605399
2 changed files with 7 additions and 5 deletions

View File

@@ -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!

View File

@@ -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):