(self, lineno: int)
| 84 | f"Expected {end!r} but reached EOF", tkn) |
| 85 | |
| 86 | def extract_line(self, lineno: int) -> str: |
| 87 | # Return source line `lineno` (1-based) |
| 88 | lines = self.src.splitlines() |
| 89 | if lineno > len(lines): |
| 90 | return "" |
| 91 | return lines[lineno - 1] |
| 92 | |
| 93 | def make_syntax_error(self, message: str, tkn: Token | None = None) -> SyntaxError: |
| 94 | # Construct a SyntaxError instance from message and token |
no test coverage detected