Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dbcli/mssql-cli
/ token_start_pos
Function
token_start_pos
mssqlcli/packages/parseutils/ctes.py:132–133 ·
view source on GitHub ↗
(tokens, idx)
Source
from the content-addressed store, hash-verified
130
131
132
def
token_start_pos(tokens, idx):
133
return
sum(len(str(t))
for
t in tokens[:idx])
134
135
136
def
_identifiers(tok):
Callers
3
test_token_str_pos
Function · 0.90
extract_ctes
Function · 0.85
get_cte_from_token
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_token_str_pos
Function · 0.72