mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Introduce the ASTPrinter class, and have its callbacks invoked during AST printing.
This provides useful extension points during AST printing. Swift SVN r11338
This commit is contained in:
@@ -639,8 +639,9 @@ public:
|
||||
|
||||
/// \brief Pretty-print the contents of this source file.
|
||||
///
|
||||
/// \param OS The stream to which the contents will be printed.
|
||||
/// \param Printer The AST printer used for printing the contents.
|
||||
/// \param PO Options controlling the printing process.
|
||||
void print(ASTPrinter &Printer, const PrintOptions &PO);
|
||||
void print(raw_ostream &OS, const PrintOptions &PO);
|
||||
|
||||
static bool classof(const FileUnit *file) {
|
||||
|
||||
Reference in New Issue
Block a user