[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

@@ -261,6 +261,10 @@ public:
/// \returns true if the results should be ignored, false otherwise.
static bool printUSR(const swift::ValueDecl *D, llvm::raw_ostream &OS);
/// Generate a USR for the Type of a given decl.
/// \returns true if the results should be ignored, false otherwise.
static bool printDeclTypeUSR(const swift::ValueDecl *D, llvm::raw_ostream &OS);
/// Generate a USR for an accessor, including the prefix.
/// \returns true if the results should be ignored, false otherwise.
static bool printAccessorUSR(const swift::AbstractStorageDecl *D,