(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 |