(view, func, action)
| 191 | |
| 192 | @staticmethod |
| 193 | def _medium_level_il_function_action(view, func, action): |
| 194 | try: |
| 195 | file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view)) |
| 196 | view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view)) |
| 197 | owner = function.Function(view_obj, core.BNGetMediumLevelILOwnerFunction(func)) |
| 198 | func_obj = mediumlevelil.MediumLevelILFunction( |
| 199 | owner.arch, core.BNNewMediumLevelILFunctionReference(func), owner |
| 200 | ) |
| 201 | action(view_obj, func_obj) |
| 202 | except: |
| 203 | log_error(traceback.format_exc()) |
| 204 | |
| 205 | @staticmethod |
| 206 | def _medium_level_il_instruction_action(view, func, instr, action): |
no test coverage detected