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

Method HasBody

IDEHelper/Compiler/BfSystem.cpp:506–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506bool BfMethodDef::HasBody()
507{
508 if (auto methodDeclaration = GetMethodDeclaration())
509 return methodDeclaration->mBody != NULL;
510 if (auto methodDeclaration = GetPropertyMethodDeclaration())
511 {
512 auto body = methodDeclaration->mBody;
513 return (body != NULL) && (!BfNodeIsA<BfTokenNode>(body));
514 }
515 return false;
516}
517
518BfMethodDef::~BfMethodDef()
519{

Callers 3

EmitGCMarkValueMethod · 0.80
DoPopulateTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected