Return Source statement which contains the given linenumber (counted from 0).
(self, lineno: int)
| 88 | return newsource |
| 89 | |
| 90 | def getstatement(self, lineno: int) -> "Source": |
| 91 | """Return Source statement which contains the given linenumber |
| 92 | (counted from 0).""" |
| 93 | start, end = self.getstatementrange(lineno) |
| 94 | return self[start:end] |
| 95 | |
| 96 | def getstatementrange(self, lineno: int) -> Tuple[int, int]: |
| 97 | """Return (start, end) tuple which spans the minimal statement region |