forked from VimPlug/jedi
Avoid goto crashes on unfinished keyword calls (#2106)
This commit is contained in:
@@ -170,6 +170,8 @@ class AbstractTreeName(AbstractNameDefinition):
|
||||
trailer = par.parent
|
||||
if trailer.type == 'arglist':
|
||||
trailer = trailer.parent
|
||||
if trailer.type == 'error_node':
|
||||
return []
|
||||
if trailer.type != 'classdef':
|
||||
if trailer.type == 'decorator':
|
||||
value_set = context.infer_node(trailer.children[1])
|
||||
|
||||
Reference in New Issue
Block a user