[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:
Holly Borla
2021-03-04 14:36:59 -08:00
parent a79f3a6288
commit 21a86b5d2f
26 changed files with 256 additions and 170 deletions

View File

@@ -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());