mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[libIDE] Refactor type-interface APIs. (#3537)
This commit is contained in:
@@ -23,6 +23,7 @@ class ASTContext;
|
||||
class ASTPrinter;
|
||||
class ModuleDecl;
|
||||
class SourceFile;
|
||||
class Type;
|
||||
struct PrintOptions;
|
||||
|
||||
namespace ide {
|
||||
@@ -46,6 +47,12 @@ ArrayRef<StringRef> collectModuleGroups(ModuleDecl *M,
|
||||
Optional<StringRef>
|
||||
findGroupNameForUSR(ModuleDecl *M, StringRef USR);
|
||||
|
||||
bool printTypeInterface(ModuleDecl *M, Type Ty, ASTPrinter &Printer,
|
||||
std::string &Error);
|
||||
|
||||
bool printTypeInterface(ModuleDecl *M, StringRef TypeUSR, ASTPrinter &Printer,
|
||||
std::string &Error);
|
||||
|
||||
void printModuleInterface(ModuleDecl *M, Optional<StringRef> Group,
|
||||
ModuleTraversalOptions TraversalOptions,
|
||||
ASTPrinter &Printer, const PrintOptions &Options,
|
||||
|
||||
Reference in New Issue
Block a user