mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix missing indexing data when using Self initializer
Fixes: https://github.com/apple/swift/issues/64686
This commit is contained in:
@@ -849,8 +849,11 @@ bool swift::ide::isBeingCalled(ArrayRef<Expr *> ExprStack) {
|
||||
auto *AE = dyn_cast<ApplyExpr>(E);
|
||||
if (!AE || AE->isImplicit())
|
||||
continue;
|
||||
if (auto *CRCE = dyn_cast<ConstructorRefCallExpr>(AE)) {
|
||||
if (CRCE->getBase() == Target)
|
||||
if (auto *CRCE = dyn_cast<ConstructorRefCallExpr>(AE->getFn())) {
|
||||
auto *Base = CRCE->getBase();
|
||||
while (auto *ICE = dyn_cast<ImplicitConversionExpr>(Base))
|
||||
Base = ICE->getSubExpr();
|
||||
if (Base == Target)
|
||||
return true;
|
||||
}
|
||||
if (isa<SelfApplyExpr>(AE))
|
||||
|
||||
Reference in New Issue
Block a user