forked from VimPlug/jedi
fix most rename tests
This commit is contained in:
@@ -76,7 +76,7 @@ class Module(pr.Simple, pr.Module):
|
|||||||
@start_pos.setter
|
@start_pos.setter
|
||||||
def start_pos(self):
|
def start_pos(self):
|
||||||
""" ignore """
|
""" ignore """
|
||||||
raise AttributeError('TODO remove - just a check if everything works fine.')
|
raise NotImplementedError('TODO remove - just a check if everything works fine.')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def end_pos(self):
|
def end_pos(self):
|
||||||
@@ -205,6 +205,7 @@ class FastParser(use_metaclass(CachedFastParser)):
|
|||||||
# set values like `pr.Module`.
|
# set values like `pr.Module`.
|
||||||
self.module_path = module_path
|
self.module_path = module_path
|
||||||
self.user_position = user_position
|
self.user_position = user_position
|
||||||
|
self._user_scope = None
|
||||||
|
|
||||||
self.current_node = None
|
self.current_node = None
|
||||||
self.parsers = []
|
self.parsers = []
|
||||||
@@ -218,12 +219,12 @@ class FastParser(use_metaclass(CachedFastParser)):
|
|||||||
if self._user_scope is None:
|
if self._user_scope is None:
|
||||||
for p in self.parsers:
|
for p in self.parsers:
|
||||||
if p.user_scope:
|
if p.user_scope:
|
||||||
if self._user_scope is not None and not \
|
if isinstance(p.user_scope, pr.SubModule):
|
||||||
isinstance(self._user_scope, pr.SubModule):
|
|
||||||
continue
|
continue
|
||||||
self._user_scope = p.user_scope
|
self._user_scope = p.user_scope
|
||||||
|
|
||||||
if isinstance(self._user_scope, pr.SubModule):
|
if isinstance(self._user_scope, pr.SubModule) \
|
||||||
|
or self._user_scope is None:
|
||||||
self._user_scope = self.module
|
self._user_scope = self.module
|
||||||
return self._user_scope
|
return self._user_scope
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user