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

Method GetName

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:135–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135String BfUsingFieldData::MemberRef::GetName(BfModule* curModule) const
136{
137 switch (mKind)
138 {
139 case Kind_Field:
140 return mTypeInstance->mTypeDef->mFields[mIdx]->mName;
141 case Kind_Property:
142 return mTypeInstance->mTypeDef->mProperties[mIdx]->mName;
143 case Kind_Method:
144 {
145 auto methodInstance = curModule->GetRawMethodInstance(mTypeInstance, mTypeInstance->mTypeDef->mMethods[mIdx]);
146 return curModule->MethodToString(methodInstance, BfMethodNameFlag_OmitTypeName);
147 }
148 case Kind_Local:
149 return curModule->mCurMethodState->mLocals[mIdx]->mName;
150 }
151 return "";
152}
153
154BfAstNode* BfUsingFieldData::MemberRef::GetRefNode(BfModule* curModule) const
155{

Callers 15

LoadMeshMethod · 0.45
FindJointsMethod · 0.45
FBXGetJointIndexMethod · 0.45
FBXLoadJointMethod · 0.45
SetParentIndexesMethod · 0.45
SortJointMethod · 0.45
VisitMethod · 0.45
GetMethodInfoMethod · 0.45
FixitAddFullyQualifyMethod · 0.45

Calls 2

GetRawMethodInstanceMethod · 0.80
MethodToStringMethod · 0.80

Tested by

no test coverage detected