mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Replace resolveCustomAttrType with a Request
This commit is contained in:
@@ -4389,9 +4389,12 @@ void SolutionApplicationTarget::maybeApplyPropertyWrapper() {
|
||||
isImplicit = true;
|
||||
}
|
||||
|
||||
auto typeExpr = TypeExpr::createImplicitHack(
|
||||
outermostWrapperAttr->getTypeLoc().getLoc(),
|
||||
outermostWrapperType, ctx);
|
||||
SourceLoc typeLoc;
|
||||
if (auto *repr = outermostWrapperAttr->getTypeRepr()) {
|
||||
typeLoc = repr->getLoc();
|
||||
}
|
||||
auto typeExpr =
|
||||
TypeExpr::createImplicitHack(typeLoc, outermostWrapperType, ctx);
|
||||
backingInitializer = CallExpr::create(
|
||||
ctx, typeExpr, outermostArg,
|
||||
outermostWrapperAttr->getArgumentLabels(),
|
||||
@@ -4405,7 +4408,8 @@ void SolutionApplicationTarget::maybeApplyPropertyWrapper() {
|
||||
// the initializer type later.
|
||||
expression.wrappedVar = singleVar;
|
||||
expression.expression = backingInitializer;
|
||||
expression.convertType = outermostWrapperAttr->getTypeLoc();
|
||||
expression.convertType = {outermostWrapperAttr->getTypeRepr(),
|
||||
outermostWrapperAttr->getType()};
|
||||
}
|
||||
|
||||
SolutionApplicationTarget SolutionApplicationTarget::forInitialization(
|
||||
|
||||
Reference in New Issue
Block a user