(cls, view: 'BinaryView', ref: core.BNReferenceSource)
| 107 | |
| 108 | @classmethod |
| 109 | def _from_core_struct(cls, view: 'BinaryView', ref: core.BNReferenceSource) -> 'ReferenceSource': |
| 110 | if ref.func: |
| 111 | func = _function.Function(view, core.BNNewFunctionReference(ref.func)) |
| 112 | else: |
| 113 | func = None |
| 114 | if ref.arch: |
| 115 | arch = architecture.CoreArchitecture._from_cache(ref.arch) |
| 116 | else: |
| 117 | arch = None |
| 118 | |
| 119 | return ReferenceSource(func, arch, ref.addr) |
| 120 | |
| 121 | @property |
| 122 | def llil(self) -> Optional[lowlevelil.LowLevelILInstruction]: |
no test coverage detected