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

Method GetDefaultCheckedKind

IDEHelper/Compiler/BfModule.cpp:4162–4171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4160}
4161
4162BfCheckedKind BfModule::GetDefaultCheckedKind()
4163{
4164 if ((mCurMethodState != NULL) && (mCurMethodState->mDisableChecks))
4165 return BfCheckedKind_Unchecked;
4166 bool runtimeChecks = mCompiler->mOptions.mRuntimeChecks;
4167 auto typeOptions = GetTypeOptions();
4168 if (typeOptions != NULL)
4169 runtimeChecks = typeOptions->Apply(runtimeChecks, BfOptionFlags_RuntimeChecks);
4170 return runtimeChecks ? BfCheckedKind_Checked : BfCheckedKind_Unchecked;
4171}
4172
4173void BfModule::AddFailType(BfTypeInstance* typeInstance)
4174{

Callers 6

WantsCheckMethodMethod · 0.80
CheckTypeMethod · 0.80
GetPropertyMethodDefMethod · 0.80
CheckPropFailMethod · 0.80

Calls 1

ApplyMethod · 0.45

Tested by

no test coverage detected