|
|
None | __init__ (self, t.Sequence[t.Tuple[int, str, str]] tokens, t.Sequence[str] comment_tags) |
| |
|
t.List[str] | find_backwards (self, int offset) |
| |
|
t.List[str] | find_comments (self, int lineno) |
| |
|
|
| tokens |
| |
|
| comment_tags |
| |
|
| offset |
| |
|
| last_lineno |
| |
Helper class to find comments in a token stream. Can only
find comments for gettext calls forwards. Once the comment
from line 4 is found, a comment for line 1 will not return a
usable value.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/jinja2/ext.py