[AST] Remove SerializedLocalDeclContext

It's not clear that its worth keeping this as a
base class for SerializedAbstractClosure and
SerializedTopLevelCodeDecl, most clients are
interested in the concrete kinds, not only whether
the context is serialized.
This commit is contained in:
Hamish Knight
2024-01-18 12:03:52 +00:00
parent f6b7301259
commit 3f4b45b012
21 changed files with 95 additions and 126 deletions

View File

@@ -1247,9 +1247,10 @@ inferAccessSyntactically(const ValueDecl *D) {
switch (DC->getContextKind()) {
case DeclContextKind::TopLevelCodeDecl:
case DeclContextKind::SerializedTopLevelCodeDecl:
return AccessLevel::FilePrivate;
case DeclContextKind::SerializedLocal:
case DeclContextKind::AbstractClosureExpr:
case DeclContextKind::SerializedAbstractClosure:
case DeclContextKind::EnumElementDecl:
case DeclContextKind::Initializer:
case DeclContextKind::AbstractFunctionDecl: