Flow graph block list of text lines
(self)
| 195 | |
| 196 | @property |
| 197 | def lines(self): |
| 198 | """Flow graph block list of text lines""" |
| 199 | count = ctypes.c_ulonglong() |
| 200 | lines = core.BNGetFlowGraphNodeLines(self.handle, count) |
| 201 | assert lines is not None, "core.BNGetFlowGraphNodeLines returned None" |
| 202 | block = self.basic_block |
| 203 | result = [] |
| 204 | for i in range(0, count.value): |
| 205 | addr = lines[i].addr |
| 206 | if (lines[i].instrIndex != 0xffffffffffffffff) and (block is not None) and hasattr(block, 'il_function'): |
| 207 | il_instr = block.il_function[lines[i].instrIndex] |
| 208 | else: |
| 209 | il_instr = None |
| 210 | color = highlight.HighlightColor._from_core_struct(lines[i].highlight) |
| 211 | tokens = function.InstructionTextToken._from_core_struct(lines[i].tokens, lines[i].count) |
| 212 | result.append(function.DisassemblyTextLine(tokens, addr, il_instr, color)) |
| 213 | core.BNFreeDisassemblyTextLines(lines, count.value) |
| 214 | return result |
| 215 | |
| 216 | @lines.setter |
| 217 | def lines(self, lines): |
nothing calls this directly
no test coverage detected