mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SourceKit: Just always call getFormalAccess()
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user