Apply to lines generated by a Basic Block, of any type. If not overridden, this function will call the appropriate ``apply_to_X_level_il_block`` function. Subclasses should return a modified list of lines to be rendered in the UI. :param block: Basic Block containing those lines :param l
( self, block: 'binaryninja.BasicBlock', lines: List['binaryninja.DisassemblyTextLine'], )
| 269 | return lines |
| 270 | |
| 271 | def apply_to_block( |
| 272 | self, |
| 273 | block: 'binaryninja.BasicBlock', |
| 274 | lines: List['binaryninja.DisassemblyTextLine'], |
| 275 | ) -> List['binaryninja.DisassemblyTextLine']: |
| 276 | """ |
| 277 | Apply to lines generated by a Basic Block, of any type. If not overridden, this |
| 278 | function will call the appropriate ``apply_to_X_level_il_block`` function. |
| 279 | Subclasses should return a modified list of lines to be rendered in the UI. |
| 280 | |
| 281 | :param block: Basic Block containing those lines |
| 282 | :param lines: Original lines of text for the block |
| 283 | :return: Modified list of lines |
| 284 | """ |
| 285 | if not block.is_il: |
| 286 | return self.apply_to_disassembly_block(block, lines) |
| 287 | elif block.is_low_level_il: |
| 288 | return self.apply_to_low_level_il_block(block, lines) |
| 289 | elif block.is_medium_level_il: |
| 290 | return self.apply_to_medium_level_il_block(block, lines) |
| 291 | elif block.is_high_level_il: |
| 292 | return self.apply_to_high_level_il_block(block, lines) |
| 293 | else: |
| 294 | # ??? |
| 295 | return lines |
| 296 | |
| 297 | def apply_to_flow_graph(self, graph: 'binaryninja.FlowGraph') -> None: |
| 298 | """ |
no test coverage detected