Returns the real name (object name) of this identifier.
(self)
| 17 | """Implements get_real_name and get_alias.""" |
| 18 | |
| 19 | def get_real_name(self): |
| 20 | """Returns the real name (object name) of this identifier.""" |
| 21 | # a.b |
| 22 | dot_idx, _ = self.token_next_by(m=(T.Punctuation, '.')) |
| 23 | return self._get_first_name(dot_idx, real_name=True) |
| 24 | |
| 25 | def get_alias(self): |
| 26 | """Returns the alias for this identifier or ``None``.""" |
nothing calls this directly
no test coverage detected