(tlist)
| 365 | |
| 366 | @recurse() |
| 367 | def group_aliased(tlist): |
| 368 | I_ALIAS = (sql.Parenthesis, sql.Function, sql.Case, sql.Identifier, |
| 369 | sql.Operation, sql.Comparison) |
| 370 | |
| 371 | tidx, token = tlist.token_next_by(i=I_ALIAS, t=T.Number) |
| 372 | while token: |
| 373 | nidx, next_ = tlist.token_next(tidx) |
| 374 | if isinstance(next_, sql.Identifier): |
| 375 | tlist.group_tokens(sql.Identifier, tidx, nidx, extend=True) |
| 376 | tidx, token = tlist.token_next_by(i=I_ALIAS, t=T.Number, idx=tidx) |
| 377 | |
| 378 | |
| 379 | @recurse(sql.Function) |
nothing calls this directly
no test coverage detected
searching dependent graphs…