mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
remove variadics, default args etc, from tuple patterns, and simplify
the Pattern::clone interface now that the complexity isn't needed. This also removes support for serializing this state.
This commit is contained in:
@@ -833,9 +833,7 @@ void Serializer::writePattern(const Pattern *pattern) {
|
||||
for (auto &elt : tuple->getElements()) {
|
||||
// FIXME: Default argument expressions?
|
||||
TuplePatternEltLayout::emitRecord(
|
||||
Out, ScratchRecord, abbrCode, addIdentifierRef(elt.getLabel()),
|
||||
elt.hasEllipsis(),
|
||||
getRawStableDefaultArgumentKind(elt.getDefaultArgKind()));
|
||||
Out, ScratchRecord, abbrCode, addIdentifierRef(elt.getLabel()));
|
||||
writePattern(elt.getPattern());
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user