IDE: Replace some calls to getDeclaredType() with getDeclaredInterfaceType()

This commit is contained in:
Slava Pestov
2020-07-31 13:11:41 -04:00
parent 38477ade9c
commit b4ea644910
3 changed files with 7 additions and 7 deletions

View File

@@ -1518,7 +1518,7 @@ SwiftDeclCollector::constructTypeNode(Type T, TypeInitInfo Info) {
Root->addChild(constructTypeNode(MTT->getInstanceType()));
} else if (auto ATT = T->getAs<ArchetypeType>()) {
for (auto Pro : ATT->getConformsTo()) {
Root->addChild(constructTypeNode(Pro->getDeclaredType()));
Root->addChild(constructTypeNode(Pro->getDeclaredInterfaceType()));
}
}
return Root;