Helper to get optional details about named references Returns the dereferenced name as both value and repr if the name list is defined. Otherwise returns the sentinel value dis.UNKNOWN for the value and an empty string for its repr.
(name_index, get_name, **extrainfo)
| 714 | return argval, argrepr |
| 715 | |
| 716 | def _get_name_info(name_index, get_name, **extrainfo): |
| 717 | """Helper to get optional details about named references |
| 718 | |
| 719 | Returns the dereferenced name as both value and repr if the name |
| 720 | list is defined. |
| 721 | Otherwise returns the sentinel value dis.UNKNOWN for the value |
| 722 | and an empty string for its repr. |
| 723 | """ |
| 724 | if get_name is not None: |
| 725 | argval = get_name(name_index, **extrainfo) |
| 726 | return argval, argval |
| 727 | else: |
| 728 | return UNKNOWN, '' |
| 729 | |
| 730 | def _parse_varint(iterator): |
| 731 | b = next(iterator) |
no test coverage detected
searching dependent graphs…