[InterfacePrinting] Printing non-doc comments at the beginning of a file, rdar://21710187.

When printing the interface extracted from a Swift file, we print every comments before
Swift code starts.

Swift SVN r29989
This commit is contained in:
Xi Ge
2015-07-08 20:10:57 +00:00
parent 76ec395dae
commit 6f33efd5f9
2 changed files with 53 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ namespace swift {
class ASTContext;
class ASTPrinter;
class ModuleDecl;
class SourceFile;
struct PrintOptions;
namespace ide {
@@ -52,6 +53,11 @@ void printSubmoduleInterface(ModuleDecl *M, ArrayRef<StringRef> FullModuleName,
void printHeaderInterface(StringRef Filename, ASTContext &Ctx,
ASTPrinter &Printer, const PrintOptions &Options);
/// Print the interface for a given swift source file.
void printSwiftSourceInterface(SourceFile &File, ASTPrinter &Printer,
const PrintOptions &Options);
} // namespace ide
} // namespace swift