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

Method CheckAllowValue

IDEHelper/Compiler/BfConstResolver.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace llvm;
21
22bool BfConstResolver::CheckAllowValue(const BfTypedValue& typedValue, BfAstNode* refNode)
23{
24 if (typedValue.mValue.IsConst())
25 return true;
26
27 mModule->Fail("Expression does not evaluate to a constant value", refNode);
28 return false;
29}
30
31BfConstResolver::BfConstResolver(BfModule* bfModule) : BfExprEvaluator(bfModule)
32{

Callers

nothing calls this directly

Calls 2

IsConstMethod · 0.45
FailMethod · 0.45

Tested by

no test coverage detected