MCPcopy Index your code
hub / github.com/python/cpython / positions_from_location_table

Function positions_from_location_table

Lib/test/test_code.py:1356–1359  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

1354 yield (code, length, line, line, column, column + (second_byte & 15))
1355
1356def positions_from_location_table(code):
1357 for _, length, line, end_line, col, end_col in parse_location_table(code):
1358 for _ in range(length):
1359 yield (line, end_line, col, end_col)
1360
1361def dedup(lst, prev=object()):
1362 for item in lst:

Callers 2

check_positionsMethod · 0.85
check_linesMethod · 0.85

Calls 1

parse_location_tableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…