| 718 | } |
| 719 | |
| 720 | std::string |
| 721 | Object::guessClassName(Structure<py_type_v>& type) const |
| 722 | { |
| 723 | remote_addr_t tp_repr = type.getField(&py_type_v::o_tp_repr); |
| 724 | if (tp_repr == d_manager->findSymbol("float_repr")) { |
| 725 | return "float"; |
| 726 | } |
| 727 | if (tp_repr == d_manager->findSymbol("none_repr")) { |
| 728 | return "NoneType"; |
| 729 | } |
| 730 | if (tp_repr == d_manager->findSymbol("bool_repr")) { |
| 731 | return "bool"; |
| 732 | } |
| 733 | if (tp_repr == d_manager->findSymbol("code_repr")) { |
| 734 | return "PyCodeObject"; |
| 735 | } |
| 736 | return "???"; |
| 737 | } |
| 738 | |
| 739 | } // namespace pystack |
nothing calls this directly
no test coverage detected