[libIDE] Refactor type-interface APIs. (#3537)

This commit is contained in:
Xi Ge
2016-07-15 15:59:22 -07:00
committed by GitHub
parent 18406900ba
commit 17e49422e7
5 changed files with 51 additions and 46 deletions

View File

@@ -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,