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

Method SetName

IDEHelper/Compiler/BfSystem.cpp:406–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404//////////////////////////////////////////////////////////////////////////
405
406void BfMemberDef::SetName(BfAstNode* nameNode)
407{
408 StringView sv = nameNode->ToStringView();
409 while ((!sv.IsEmpty()) && (sv[0] == '@'))
410 {
411 sv.RemoveFromStart(1);
412 mNamePrefixCount++;
413 }
414 mName = sv;
415}
416
417void BfParameterDef::SetName(BfAstNode* nameNode)
418{

Callers 8

CreateAllocaMethod · 0.45
CreateAllocaInstMethod · 0.45
BoxValueMethod · 0.45
ProcessMethodMethod · 0.45
CreateMethodDefMethod · 0.45
VisitMethod · 0.45
CreateCallMethod · 0.45

Calls 3

RemoveFromStartMethod · 0.80
ToStringViewMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected