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

Method GetMethod

IDEHelper/Compiler/BfAst.cpp:1282–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280//////////////////////////////////////////////////////////////////////////
1281
1282BfPropertyMethodDeclaration* BfPropertyDeclaration::GetMethod(const StringImpl& findName)
1283{
1284 String methodName;
1285
1286 for (auto& methodDeclaration : mMethods)
1287 {
1288 if (methodDeclaration->mNameNode != NULL)
1289 {
1290 methodName.Clear();
1291 methodDeclaration->mNameNode->ToString(methodName);
1292
1293 if (methodName == findName)
1294 return methodDeclaration;
1295 }
1296 }
1297 return NULL;
1298}
1299
1300//////////////////////////////////////////////////////////////////////////
1301

Callers 1

GetMethodInfoMethod · 0.80

Calls 2

ClearMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected