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:
@@ -173,7 +173,7 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
|
||||
initDecl->setInterfaceType(allocIfaceType);
|
||||
initDecl->setInitializerInterfaceType(initIfaceType);
|
||||
initDecl->setAccess(derived.Nominal->getFormalAccess());
|
||||
initDecl->setValidationStarted();
|
||||
initDecl->setValidationToChecked();
|
||||
|
||||
C.addSynthesizedDecl(initDecl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user