forked from VimPlug/jedi
remove parser from modules.py
This commit is contained in:
@@ -72,16 +72,6 @@ class ModuleWithCursor(object):
|
||||
self._line_temp = None
|
||||
self._relevant_temp = None
|
||||
|
||||
@property
|
||||
@cache.underscore_memoization
|
||||
def parser(self):
|
||||
""" get the parser lazy """
|
||||
cache.invalidate_star_import_cache(self.path)
|
||||
parser = fast.FastParser(self.source, self.path, self.position)
|
||||
# Don't pickle that module, because the main module is changing quickly
|
||||
cache.save_parser(self.path, self.name, parser, pickling=False)
|
||||
return parser
|
||||
|
||||
def get_path_until_cursor(self):
|
||||
""" Get the path under the cursor. """
|
||||
if self._path_until_cursor is None: # small caching
|
||||
|
||||
Reference in New Issue
Block a user