mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Debride Pattern.h of Implicit Tri-State
Remove all of this in favor of explicit constructors to preserve the one-liners, or distribute the setImplicit() calls to the callsites if necessary.
This commit is contained in:
@@ -298,8 +298,7 @@ deriveBodyCodingKey_init_stringValue(AbstractFunctionDecl *initDecl, void *) {
|
||||
/*case body var decls*/ None));
|
||||
}
|
||||
|
||||
auto *anyPat = new (C) AnyPattern(SourceLoc());
|
||||
anyPat->setImplicit();
|
||||
auto *anyPat = AnyPattern::createImplicit(C);
|
||||
auto dfltLabelItem = CaseLabelItem::getDefault(anyPat);
|
||||
|
||||
auto *dfltReturnStmt = new (C) FailStmt(SourceLoc(), SourceLoc());
|
||||
|
||||
Reference in New Issue
Block a user