mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC][Property Wrappers] Split PropertyWrapperBackingPropertyInfoRequest into
two separate requests - one to synthesize the auxiliary declarations, and another to compute how the backing storage is initialized.
This commit is contained in:
@@ -2955,10 +2955,12 @@ public:
|
||||
projectionVar = cast<VarDecl>(MF.getDecl(backingPropertyIDs[1]));
|
||||
}
|
||||
|
||||
PropertyWrapperBackingPropertyInfo info(
|
||||
backingVar, projectionVar, nullptr, nullptr);
|
||||
PropertyWrapperAuxiliaryVariables vars(backingVar, projectionVar);
|
||||
ctx.evaluator.cacheOutput(
|
||||
PropertyWrapperBackingPropertyInfoRequest{var}, std::move(info));
|
||||
PropertyWrapperAuxiliaryVariablesRequest{var}, std::move(vars));
|
||||
ctx.evaluator.cacheOutput(
|
||||
PropertyWrapperInitializerInfoRequest{var},
|
||||
PropertyWrapperInitializerInfo());
|
||||
ctx.evaluator.cacheOutput(
|
||||
PropertyWrapperBackingPropertyTypeRequest{var},
|
||||
backingVar->getInterfaceType());
|
||||
|
||||
Reference in New Issue
Block a user