| 2912 | } |
| 2913 | |
| 2914 | void 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 | |
| 2925 | bool BfModule::CheckProtection(BfProtectionCheckFlags& flags, BfTypeInstance* memberOwner, BfProject* memberProject, BfProtection memberProtection, BfTypeInstance* lookupStartType) |
| 2926 | { |