mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST/SourceKit: Fix printing of inheritance clauses (sort of)
This still needs a lot more cleanup.
This commit is contained in:
@@ -335,7 +335,13 @@ static void initDocGenericParams(const Decl *D, DocEntityInfo &Info,
|
||||
if (auto *typeDC = GC->getInnermostTypeContext())
|
||||
Proto = typeDC->getSelfProtocolDecl();
|
||||
|
||||
for (auto Req: GenericSig.getRequirements()) {
|
||||
SmallVector<Requirement, 2> Reqs;
|
||||
SmallVector<InverseRequirement, 2> InverseReqs;
|
||||
GenericSig->getRequirementsWithInverses(Reqs, InverseReqs);
|
||||
// FIXME: Handle InverseReqs, or change the above to getRequirements()
|
||||
// and update tests to include Copyable/Escapable
|
||||
|
||||
for (auto Req: Reqs) {
|
||||
if (Proto &&
|
||||
Req.getKind() == RequirementKind::Conformance &&
|
||||
Req.getFirstType()->isEqual(Proto->getSelfInterfaceType()) &&
|
||||
|
||||
Reference in New Issue
Block a user