mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] for cursor-info request, printing underlying types instead of namelias type. rdar://28216890 (#5339)
This commit is contained in:
@@ -644,7 +644,9 @@ static bool passCursorInfoForDecl(const ValueDecl *VD,
|
||||
unsigned TypenameBegin = SS.size();
|
||||
if (VD->hasType()) {
|
||||
llvm::raw_svector_ostream OS(SS);
|
||||
VD->getInterfaceType().print(OS);
|
||||
PrintOptions Options;
|
||||
Options.PrintNameAliasUnderlyingType = true;
|
||||
VD->getInterfaceType().print(OS, Options);
|
||||
}
|
||||
unsigned TypenameEnd = SS.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user