forked from VimPlug/jedi
use correct parents
This commit is contained in:
@@ -175,10 +175,10 @@ class ParserNode(object):
|
|||||||
items = getattr(parser.module, c)
|
items = getattr(parser.module, c)
|
||||||
if set_parent:
|
if set_parent:
|
||||||
for i in items:
|
for i in items:
|
||||||
i.parent = scope
|
i.parent = scope.use_as_parent
|
||||||
try:
|
try:
|
||||||
for d in i.decorators:
|
for d in i.decorators:
|
||||||
d.parent = scope
|
d.parent = scope.use_as_parent
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
content += items
|
content += items
|
||||||
|
|||||||
Reference in New Issue
Block a user