Skip to content

Commit e923e20

Browse files
committed
AST: Print @_typeSequence in the ASTPrinter
1 parent b0fb7c5 commit e923e20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,9 @@ void PrintAST::printSingleDepthOfGenericSignature(
16791679
llvm::interleave(
16801680
genericParams,
16811681
[&](GenericTypeParamType *param) {
1682+
if (param->isTypeSequence())
1683+
Printer.printAttrName("@_typeSequence ");
1684+
16821685
if (!subMap.empty()) {
16831686
printType(substParam(param));
16841687
} else if (auto *GP = param->getDecl()) {
@@ -3473,6 +3476,8 @@ void PrintAST::visitTypeAliasDecl(TypeAliasDecl *decl) {
34733476

34743477
void PrintAST::visitGenericTypeParamDecl(GenericTypeParamDecl *decl) {
34753478
recordDeclLoc(decl, [&] {
3479+
if (decl->isTypeSequence())
3480+
Printer.printAttrName("@_typeSequence ");
34763481
Printer.printName(decl->getName(), PrintNameContext::GenericParameter);
34773482
});
34783483

0 commit comments

Comments
 (0)