mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Move getEffectiveAccess calls into SIL.
This commit is contained in:
@@ -398,13 +398,6 @@ public:
|
||||
return ContextAndInvalid.getPointer().dyn_cast<AbstractStorageDecl *>();
|
||||
}
|
||||
|
||||
bool isSerialized() const {
|
||||
auto *nominal = getType()->getAnyNominal();
|
||||
return nominal->hasFixedLayout() &&
|
||||
getProtocol()->getEffectiveAccess() >= Accessibility::Public &&
|
||||
nominal->getEffectiveAccess() >= Accessibility::Public;
|
||||
}
|
||||
|
||||
/// Retrieve the type witness and type decl (if one exists)
|
||||
/// for the given associated type.
|
||||
std::pair<Type, TypeDecl *>
|
||||
|
||||
Reference in New Issue
Block a user