[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:
Robert Widmann
2020-04-30 19:01:24 -07:00
parent 8280606828
commit 0342855e50
18 changed files with 159 additions and 179 deletions

View File

@@ -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());