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