General pattern where the last node should should get the text span attributes of the entire tree
(self, node)
| 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 |
nothing calls this directly
no test coverage detected