mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Implement a new SourceKit request to generate the interface for a given type. rdar://27306890 (#3586)
This patch allows SourceKit to generate the interface for a given type specified by its mangled name. Type interface is refined decl printing with type parameters localized and unusable members hidden. Required field: "key.request": "source.request.editor.open.interface.swifttype" "key.usr": the mangled name of the given type.
This commit is contained in:
@@ -49,10 +49,10 @@ Optional<StringRef>
|
||||
findGroupNameForUSR(ModuleDecl *M, StringRef USR);
|
||||
|
||||
bool printTypeInterface(ModuleDecl *M, Type Ty, ASTPrinter &Printer,
|
||||
std::string &Error);
|
||||
std::string &TypeName, std::string &Error);
|
||||
|
||||
bool printTypeInterface(ModuleDecl *M, StringRef TypeUSR, ASTPrinter &Printer,
|
||||
std::string &Error);
|
||||
std::string &TyepName, std::string &Error);
|
||||
|
||||
void printModuleInterface(ModuleDecl *M, Optional<StringRef> Group,
|
||||
ModuleTraversalOptions TraversalOptions,
|
||||
|
||||
Reference in New Issue
Block a user