MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / insert_child

Method insert_child

tools/python-3.11.9-amd64/Lib/lib2to3/pytree.py:298–305  ·  view source on GitHub ↗

Equivalent to 'node.children.insert(i, child)'. This method also sets the child's parent attribute appropriately.

(self, i, child)

Source from the content-addressed store, hash-verified

296 self.changed()
297
298 def insert_child(self, i, child):
299 """
300 Equivalent to 'node.children.insert(i, child)'. This method also sets
301 the child's parent attribute appropriately.
302 """
303 child.parent = self
304 self.children.insert(i, child)
305 self.changed()
306
307 def append_child(self, child):
308 """

Callers 8

ArgListFunction · 0.95
touch_importFunction · 0.80
fixup_simple_stmtFunction · 0.80
transformMethod · 0.80
transformMethod · 0.80
transformMethod · 0.80
transformMethod · 0.80

Calls 2

changedMethod · 0.80
insertMethod · 0.45

Tested by 1