mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST printing: when printing module interface, explode PatternBindingDecls
The exact pattern that was used to declare a variable is not important from the module interface point of view. Swift SVN r11231
This commit is contained in:
@@ -1120,17 +1120,13 @@ bool Module::walk(ASTWalker &Walker) {
|
||||
// SourceFile Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void SourceFile::print(raw_ostream &os) {
|
||||
print(os, PrintOptions::printEverything());
|
||||
}
|
||||
|
||||
void SourceFile::print(raw_ostream &os, const PrintOptions &options) {
|
||||
void SourceFile::print(raw_ostream &OS, const PrintOptions &PO) {
|
||||
for (auto decl : Decls) {
|
||||
if (!decl->shouldPrintInContext())
|
||||
if (!decl->shouldPrintInContext(PO))
|
||||
continue;
|
||||
|
||||
decl->print(os, options);
|
||||
os << "\n";
|
||||
decl->print(OS, PO);
|
||||
OS << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user