(tlist)
| 418 | |
| 419 | @recurse() |
| 420 | def align_comments(tlist): |
| 421 | tidx, token = tlist.token_next_by(i=sql.Comment) |
| 422 | while token: |
| 423 | pidx, prev_ = tlist.token_prev(tidx) |
| 424 | if isinstance(prev_, sql.TokenList): |
| 425 | tlist.group_tokens(sql.TokenList, pidx, tidx, extend=True) |
| 426 | tidx = pidx |
| 427 | tidx, token = tlist.token_next_by(i=sql.Comment, idx=tidx) |
| 428 | |
| 429 | |
| 430 | def group_values(tlist): |
nothing calls this directly
no test coverage detected
searching dependent graphs…