mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update SourceKit for getInterfaceType() changes
This commit is contained in:
@@ -533,10 +533,9 @@ static void reportRelated(ASTContext &Ctx, const Decl *D,
|
||||
|
||||
} else if (auto *TAD = dyn_cast<TypeAliasDecl>(D)) {
|
||||
|
||||
if (TAD->hasInterfaceType()) {
|
||||
if (auto Ty = TAD->getDeclaredInterfaceType()) {
|
||||
// If underlying type exists, report the inheritance and conformance of the
|
||||
// underlying type.
|
||||
auto Ty = TAD->getDeclaredInterfaceType();
|
||||
if (auto NM = Ty->getAnyNominal()) {
|
||||
passInherits(NM->getInherited(), Consumer);
|
||||
passConforms(NM->getSatisfiedProtocolRequirements(/*Sorted=*/true),
|
||||
|
||||
Reference in New Issue
Block a user