MCPcopy
hub / github.com/psf/black / insert_str_child

Function insert_str_child

src/black/trans.py:2542–2549  ·  view source on GitHub ↗
(child: LN)

Source from the content-addressed store, hash-verified

2540 string_child_idx = string_leaf.remove()
2541
2542 def insert_str_child(child: LN) -> None:
2543 nonlocal string_child_idx
2544
2545 assert string_parent is not None
2546 assert string_child_idx is not None
2547
2548 string_parent.insert_child(string_child_idx, child)
2549 string_child_idx += 1
2550
2551 return insert_str_child
2552

Callers 2

do_transformMethod · 0.85
do_transformMethod · 0.85

Calls 1

insert_childMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…