Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dbcli/pgcli
/ token_start_pos
Function
token_start_pos
pgcli/packages/parseutils/ctes.py:133–134 ·
view source on GitHub ↗
(tokens, idx)
Source
from the content-addressed store, hash-verified
131
132
133
def
token_start_pos(tokens, idx):
134
return
sum(len(str(t))
for
t in tokens[:idx])
135
136
137
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