AST: Introduce PackElementType

This commit is contained in:
Slava Pestov
2023-05-22 13:47:24 -04:00
parent 8f9a4cbdae
commit b2bc2c72ec
29 changed files with 274 additions and 4 deletions

View File

@@ -2168,6 +2168,11 @@ public:
llvm_unreachable("shouldn't encounter pack expansion by itself");
}
CanType visitPackElementType(CanPackElementType packElement,
AbstractionPattern pattern) {
llvm_unreachable("shouldn't encounter pack element by itself");
}
CanType handlePackExpansion(AbstractionPattern origExpansion,
CanType candidateSubstType) {
// When we're within a pack expansion, pack references matching that