mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user