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

Method IsExpression

IDEHelper/Compiler/BfAst.cpp:828–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828bool BfAstNode::IsExpression()
829{
830 if (auto deferStmt = BfNodeDynCast<BfDeferStatement>(this))
831 {
832 if (BfNodeIsExact<BfBlock>(deferStmt->mTargetNode))
833 return false;
834 }
835 if (auto block = BfNodeDynCast<BfBlock>(this))
836 {
837 if (block->mChildArr.mSize == 0)
838 return false;
839 return block->mChildArr.GetLast()->IsExpression();
840 }
841
842 return IsA<BfExpression>();
843}
844
845bool BfAstNode::WantsWarning(int warningNumber)
846{

Callers 2

VisitCodeBlockMethod · 0.80
VisitMethod · 0.80

Calls 1

GetLastMethod · 0.45

Tested by

no test coverage detected