| 473 | ////////////////////////////////////////////////////////////////////////// |
| 474 | |
| 475 | String CeDbgMethodRef::ToString() |
| 476 | { |
| 477 | if (!mMethodRef) |
| 478 | return mNameMod; |
| 479 | |
| 480 | BfMethodInstance* methodInstance = mMethodRef; |
| 481 | auto module = methodInstance->GetOwner()->mModule; |
| 482 | |
| 483 | String name = module->MethodToString(methodInstance); |
| 484 | if (!mNameMod.IsEmpty()) |
| 485 | { |
| 486 | for (int i = 1; i < (int)name.length(); i++) |
| 487 | { |
| 488 | if (name[i] == '(') |
| 489 | { |
| 490 | char prevC = name[i - 1]; |
| 491 | if ((::isalnum((uint8)prevC)) || (prevC == '_')) |
| 492 | { |
| 493 | name.Insert(i, mNameMod); |
| 494 | break; |
| 495 | } |
| 496 | } |
| 497 | } |
| 498 | } |
| 499 | return name; |
| 500 | } |
| 501 | |
| 502 | ////////////////////////////////////////////////////////////////////////// |
| 503 |
no test coverage detected