MCPcopy
hub / github.com/andialbrecht/sqlparse / valid_next

Function valid_next

sqlparse/engine/grouping.py:121–126  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

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

Callers 1

_groupFunction · 0.85

Calls 2

imtFunction · 0.90
matchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…