[SourceKit] In CursorInfo response, include the mangle name of the type of the underlying decl.

The mangled name of the type is identical to those for debugger. These
mangled names allow us to reconstruct the type from AST and generate interface
specifically for that type.

Related rdar://27306890
This commit is contained in:
Xi Ge
2016-07-12 12:01:37 -07:00
parent e9688dc41b
commit a5e51a3494
14 changed files with 67 additions and 13 deletions

View File

@@ -697,6 +697,10 @@ bool SwiftLangSupport::printUSR(const ValueDecl *D, llvm::raw_ostream &OS) {
return ide::printDeclUSR(D, OS);
}
bool SwiftLangSupport::printDeclTypeUSR(const ValueDecl *D, llvm::raw_ostream &OS) {
return ide::printDeclTypeUSR(D, OS);
}
bool SwiftLangSupport::printAccessorUSR(const AbstractStorageDecl *D,
AccessorKind AccKind,
llvm::raw_ostream &OS) {