mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ASTPrinter: Pass the bracket options to pre and post printing callbacks.
Need this for rdar://24912860
This commit is contained in:
@@ -183,11 +183,11 @@ private:
|
||||
|
||||
// MARK: The ASTPrinter callback interface.
|
||||
|
||||
void printDeclPre(const Decl *D) override {
|
||||
void printDeclPre(const Decl *D, Optional<BracketOptions> Bracket) override {
|
||||
contextStack.emplace_back(PrintContext(D));
|
||||
openTag(getTagForDecl(D, /*isRef=*/false));
|
||||
}
|
||||
void printDeclPost(const Decl *D) override {
|
||||
void printDeclPost(const Decl *D, Optional<BracketOptions> Bracket) override {
|
||||
assert(contextStack.back().getDecl() == D && "unmatched printDeclPre");
|
||||
contextStack.pop_back();
|
||||
closeTag(getTagForDecl(D, /*isRef=*/false));
|
||||
|
||||
Reference in New Issue
Block a user