SourceKit: Just always call getFormalAccess()

This commit is contained in:
Slava Pestov
2018-09-04 22:47:59 -07:00
parent c68cbe85ec
commit c51f884879
10 changed files with 56 additions and 98 deletions

View File

@@ -1068,9 +1068,6 @@ static bool shouldIgnore(Decl *D, const Decl* Parent) {
return true;
if (VD->getBaseName().empty())
return true;
// This shouldn't happen, being forgiving here.
if (!VD->hasAccess())
return true;
switch (VD->getFormalAccess()) {
case AccessLevel::Internal:
case AccessLevel::Private: