MCPcopy 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
133def token_start_pos(tokens, idx):
134 return sum(len(str(t)) for t in tokens[:idx])
135
136
137def _identifiers(tok):

Callers 3

test_token_str_posFunction · 0.90
extract_ctesFunction · 0.85
get_cte_from_tokenFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_token_str_posFunction · 0.72