1
0
forked from VimPlug/jedi

Start using filters for name resolution.

This commit is contained in:
Dave Halter
2016-09-30 13:29:20 +02:00
parent a96eec8058
commit 249049b10c
3 changed files with 92 additions and 2 deletions

View File

@@ -125,6 +125,12 @@ class Base(object):
def isinstance(self, *cls):
return isinstance(self, cls)
def get_root_node(self):
scope = self
while scope.parent is not None:
scope = scope.parent
return scope
@Python3Method
def get_parent_until(self, classes=(), reverse=False,
include_current=True):