1
0
forked from VimPlug/jedi

again Definition/Usage merging

This commit is contained in:
Dave Halter
2014-04-18 01:51:09 +02:00
parent b643325889
commit c2bdda339b
3 changed files with 15 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
from jedi._compatibility import unicode
from jedi import common
from jedi.api import classes
from jedi.parser import representation as pr
@@ -11,13 +10,8 @@ class Usage(classes.Definition):
def __init__(self, evaluator, name_part, scope):
super(Usage, self).__init__(evaluator, name_part)
self._start_pos = name_part.start_pos
self.text = unicode(name_part)
#self.end_pos = name_part.end_pos
@property
def description(self):
return "%s@%s,%s" % (self.text, self.line, self.column)
def __eq__(self, other):
return self._start_pos == other._start_pos \
and self.module_path == other.module_path