mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] NFC: Formalize Decl validation tracking via RAII
After this change, RAII ensures that the validation state is accurate as possible.
This commit is contained in:
@@ -360,7 +360,7 @@ ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx)
|
||||
setInterfaceType(ModuleType::get(this));
|
||||
|
||||
// validateDecl() should return immediately given a ModuleDecl.
|
||||
setValidationStarted();
|
||||
setValidationToChecked();
|
||||
|
||||
setAccess(AccessLevel::Public);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user