[SourceKit] DocInfo: Simplify the type parameter names inside fully annotated decls.

This commit is contained in:
Xi Ge
2016-04-01 11:43:26 -07:00
parent fa77a7afc9
commit adc65bf609
4 changed files with 26 additions and 15 deletions

View File

@@ -366,7 +366,11 @@ static bool initDocEntityInfo(const Decl *D, const Decl *SynthesizedTarget,
if (auto *VD = dyn_cast<ValueDecl>(D)) {
llvm::raw_svector_ostream OS(Info.FullyAnnotatedDecl);
SwiftLangSupport::printFullyAnnotatedDeclaration(VD, Type(), OS);
if (SynthesizedTarget)
SwiftLangSupport::printFullyAnnotatedSynthesizedDeclaration(VD,
(NominalTypeDecl*)SynthesizedTarget, OS);
else
SwiftLangSupport::printFullyAnnotatedDeclaration(VD, Type(), OS);
}
}