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

Method GetAccessAllowed

IDEHelper/Compiler/BfModule.cpp:2914–2923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2912}
2913
2914void BfModule::GetAccessAllowed(BfTypeInstance* checkType, bool &allowProtected, bool &allowPrivate)
2915{
2916 allowPrivate = (checkType == mCurTypeInstance) || (IsInnerType(mCurTypeInstance, checkType));
2917 if ((mCurMethodState != NULL) && (mCurMethodState->mMixinState != NULL))
2918 {
2919 auto mixinOwner = mCurMethodState->mMixinState->mMixinMethodInstance->GetOwner();
2920 allowPrivate |= (checkType == mixinOwner) || (IsInnerType(mixinOwner, checkType));
2921 }
2922 allowProtected = allowPrivate;
2923}
2924
2925bool BfModule::CheckProtection(BfProtectionCheckFlags& flags, BfTypeInstance* memberOwner, BfProject* memberProject, BfProtection memberProtection, BfTypeInstance* lookupStartType)
2926{

Callers

nothing calls this directly

Calls 1

GetOwnerMethod · 0.45

Tested by

no test coverage detected