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

Method CheckProtection

IDEHelper/Compiler/BfAutoComplete.cpp:691–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691bool BfAutoComplete::CheckProtection(BfProtection protection, BfTypeDef* typeDef, bool allowProtected, bool allowPrivate)
692{
693 if (mResolveType == BfResolveType_GetSymbolInfo)
694 {
695 // This is needed for nameof on private inner types
696 return true;
697 }
698
699 if ((protection == BfProtection_Internal) && (typeDef != NULL))
700 {
701 return mModule->CheckProtection(protection, typeDef, allowProtected, allowPrivate);
702 }
703
704 return (mHasFriendSet) || (protection == BfProtection_Public) ||
705 ((protection == BfProtection_Protected) && (allowProtected)) ||
706 ((protection == BfProtection_Private) && (allowPrivate));
707}
708
709const char* BfAutoComplete::GetTypeName(BfType* type)
710{

Callers 2

AddTypeMembersMethod · 0.45
FixitAddFullyQualifyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected