MCPcopy Create free account
hub / github.com/beefytech/Beef / ToString

Method ToString

IDEHelper/Compiler/CeMachine.cpp:475–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473//////////////////////////////////////////////////////////////////////////
474
475String 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

Callers 3

GetOperandMethod · 0.45
FailMethod · 0.45
ExecuteMethod · 0.45

Calls 5

MethodToStringMethod · 0.80
GetOwnerMethod · 0.45
IsEmptyMethod · 0.45
lengthMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected