| 689 | } |
| 690 | |
| 691 | bool 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 | |
| 709 | const char* BfAutoComplete::GetTypeName(BfType* type) |
| 710 | { |
no outgoing calls
no test coverage detected