(tlist)
| 192 | |
| 193 | |
| 194 | def group_as(tlist): |
| 195 | def match(token): |
| 196 | return token.is_keyword and token.normalized == 'AS' |
| 197 | |
| 198 | def valid_prev(token): |
| 199 | return token.normalized == 'NULL' or not token.is_keyword |
| 200 | |
| 201 | def valid_next(token): |
| 202 | ttypes = T.DML, T.DDL, T.CTE |
| 203 | return not imt(token, t=ttypes) and token is not None |
| 204 | |
| 205 | def post(tlist, pidx, tidx, nidx): |
| 206 | return pidx, nidx |
| 207 | |
| 208 | _group(tlist, sql.Identifier, match, valid_prev, valid_next, post) |
| 209 | |
| 210 | |
| 211 | def group_assignment(tlist): |
nothing calls this directly
no test coverage detected
searching dependent graphs…