MCPcopy
hub / github.com/rocky/python-uncompyle6 / table_r_node

Method table_r_node

uncompyle6/semantics/fragments.py:245–257  ·  view source on GitHub ↗

General pattern where the last node should should get the text span attributes of the entire tree

(self, node)

Source from the content-addressed store, hash-verified

243 return
244
245 def table_r_node(self, node):
246 """General pattern where the last node should should
247 get the text span attributes of the entire tree"""
248 start = len(self.f.getvalue())
249 try:
250 self.default(node)
251 except GenericASTTraversalPruningException:
252 if not hasattr(node[-1], "parent"):
253 node[-1].parent = node
254 final = len(self.f.getvalue())
255 self.set_pos_info(node, start, final)
256 self.set_pos_info(node[-1], start, final)
257 raise GenericASTTraversalPruningException
258
259 n_slice0 = n_slice1 = n_slice2 = n_slice3 = n_subscript = table_r_node
260 n_aug_assign_1 = n_print_item = exec_stmt = print_to_item = delete = table_r_node

Callers

nothing calls this directly

Calls 2

set_pos_infoMethod · 0.95
defaultMethod · 0.45

Tested by

no test coverage detected