mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SourceKit: Use getNextDepth()/getMaxDepth()
This commit is contained in:
@@ -286,10 +286,7 @@ static void initDocGenericParams(const Decl *D, DocEntityInfo &Info,
|
||||
DC = D->getInnermostDeclContext()->getInnermostTypeContext();
|
||||
M = DC->getParentModule();
|
||||
SubMap = BaseType->getContextSubstitutionMap(M, DC);
|
||||
if (!SubMap.empty()) {
|
||||
TypeContextDepth = SubMap.getGenericSignature()
|
||||
.getGenericParams().back()->getDepth() + 1;
|
||||
}
|
||||
TypeContextDepth = SubMap.getGenericSignature().getNextDepth();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user