(tlist)
| 335 | |
| 336 | @recurse(sql.Comment) |
| 337 | def group_comments(tlist): |
| 338 | tidx, token = tlist.token_next_by(t=T.Comment) |
| 339 | while token: |
| 340 | eidx, end = tlist.token_not_matching( |
| 341 | lambda tk: imt(tk, t=T.Comment) or tk.is_newline, idx=tidx) |
| 342 | if end is not None: |
| 343 | eidx, end = tlist.token_prev(eidx, skip_ws=False) |
| 344 | tlist.group_tokens(sql.Comment, tidx, eidx) |
| 345 | |
| 346 | tidx, token = tlist.token_next_by(t=T.Comment, idx=tidx) |
| 347 | |
| 348 | |
| 349 | @recurse(sql.Where) |
nothing calls this directly
no test coverage detected
searching dependent graphs…