mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 20:41:13 +08:00
well yeah give NamePart a get_code method after all, makes sense, because all the other parser representation objects have it.
This commit is contained in:
@@ -1396,6 +1396,9 @@ class NamePart(object):
|
||||
def __repr__(self):
|
||||
return "<%s: %s>" % (type(self).__name__, self._string)
|
||||
|
||||
def get_code(self):
|
||||
return self._string
|
||||
|
||||
def get_parent_until(self, *args, **kwargs):
|
||||
return self.parent.get_parent_until(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user