Look up an opcode by its numeric code.
(cls, code: int)
| 838 | |
| 839 | @classmethod |
| 840 | def from_code(cls, code: int) -> Opcode | None: |
| 841 | """Look up an opcode by its numeric code.""" |
| 842 | for op in cls: |
| 843 | if op.code == code: |
| 844 | return op |
| 845 | return None |
| 846 | |
| 847 | @classmethod |
| 848 | def from_name(cls, name: str) -> Opcode | None: |
no outgoing calls