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:
@@ -50,7 +50,7 @@ static void dumpPattern(const Pattern *p, llvm::raw_ostream &os) {
|
||||
os << "<expr>";
|
||||
return;
|
||||
case PatternKind::Named:
|
||||
os << "var " << cast<NamedPattern>(p)->getBodyName();
|
||||
os << "var " << cast<NamedPattern>(p)->getBoundName();
|
||||
return;
|
||||
case PatternKind::Tuple: {
|
||||
unsigned numFields = cast<TuplePattern>(p)->getNumElements();
|
||||
|
||||
Reference in New Issue
Block a user