forked from VimPlug/jedi
Add a way to get the line in a BaseDefinition. Fixes #518.
This commit is contained in:
@@ -113,6 +113,7 @@ class Parser(object):
|
||||
source += '\n'
|
||||
self._added_newline = True
|
||||
|
||||
self.source = source
|
||||
self._start_symbol = start_symbol
|
||||
self._grammar = grammar
|
||||
|
||||
|
||||
@@ -282,6 +282,7 @@ class FastParser(use_metaclass(CachedFastParser)):
|
||||
self.number_of_splits = 0
|
||||
self.number_of_misses = 0
|
||||
self.module.reset_caches()
|
||||
self.source = source
|
||||
try:
|
||||
self._parse(source)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user