Apply this Render Layer to a Flow Graph, potentially modifying its nodes, their edges, their lines, and their lines' content. .. note:: If you override this function, you will need to call the ``super()`` \ implementation if you want to use the higher level ``apply_to_X_level_il_block`` \
(self, graph: 'binaryninja.FlowGraph')
| 295 | return lines |
| 296 | |
| 297 | def apply_to_flow_graph(self, graph: 'binaryninja.FlowGraph') -> None: |
| 298 | """ |
| 299 | Apply this Render Layer to a Flow Graph, potentially modifying its nodes, |
| 300 | their edges, their lines, and their lines' content. |
| 301 | |
| 302 | .. note:: If you override this function, you will need to call the ``super()`` \ |
| 303 | implementation if you want to use the higher level ``apply_to_X_level_il_block`` \ |
| 304 | functionality. |
| 305 | |
| 306 | :param graph: Graph to modify |
| 307 | """ |
| 308 | pass |
| 309 | for i, node in enumerate(graph.nodes): |
| 310 | lines = node.lines |
| 311 | if node.basic_block is not None and isinstance(node.basic_block, binaryninja.BasicBlock): |
| 312 | lines = self.apply_to_block(node.basic_block, lines) |
| 313 | node.lines = lines |
| 314 | |
| 315 | def apply_to_linear_view_object( |
| 316 | self, |
no test coverage detected