swift
79fe1b35 - [AST] Remove `findParentPatternCaseStmtAndPattern`

Commit
57 days ago
[AST] Remove `findParentPatternCaseStmtAndPattern` Add the extra logic to `VarDecl::getParentPattern` necessary to handle fallthrough and case body variables instead. This also changes the behavior for case body vars - previously we would return the first pattern in the CaseStmt, but that's not necessarily correct. Instead, return the first pattern that actually binds the variable.
Author
Parents
Loading