MCPcopy Index your code
hub / github.com/RustPython/RustPython / positions_from_location_table

Function positions_from_location_table

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

Source from the content-addressed store, hash-verified

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

Callers 2

check_positionsMethod · 0.85
check_linesMethod · 0.85

Calls 1

parse_location_tableFunction · 0.85

Tested by

no test coverage detected