mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user