(tlist)
| 112 | |
| 113 | |
| 114 | def group_tzcasts(tlist): |
| 115 | def match(token): |
| 116 | return token.ttype == T.Keyword.TZCast |
| 117 | |
| 118 | def valid_prev(token): |
| 119 | return token is not None |
| 120 | |
| 121 | def valid_next(token): |
| 122 | return token is not None and ( |
| 123 | token.is_whitespace |
| 124 | or token.match(T.Keyword, 'AS') |
| 125 | or token.match(*sql.TypedLiteral.M_CLOSE) |
| 126 | ) |
| 127 | |
| 128 | def post(tlist, pidx, tidx, nidx): |
| 129 | return pidx, nidx |
| 130 | |
| 131 | _group(tlist, sql.Identifier, match, valid_prev, valid_next, post) |
| 132 | |
| 133 | |
| 134 | def group_typed_literal(tlist): |
nothing calls this directly
no test coverage detected
searching dependent graphs…