MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / fix_missing_locations

Function fix_missing_locations

Lib/ast.py:125–147  ·  view source on GitHub ↗

When you compile a node tree with compile(), the compiler expects lineno and col_offset attributes for every node that supports them. This is rather tedious to fill in for generated nodes, so this helper adds these attributes recursively where not already set, by setting them to th

(node)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_fixFunction · 0.85

Tested by

no test coverage detected