Implement multiple pattern case and fall-through pattern case support

This commit is contained in:
Chris Smowton
2024-03-22 14:34:17 +00:00
parent c283894b4b
commit f44becea7f
9 changed files with 161 additions and 51 deletions

View File

@@ -84,7 +84,7 @@ predicate depends(RefType t, RefType dep) {
or
// A type accessed in a pattern-switch case statement in `t`.
exists(PatternCase pc | t = pc.getEnclosingCallable().getDeclaringType() |
usesType(pc.getPattern().getAChildExpr*().getType(), dep)
usesType(pc.getAPattern().getAChildExpr*().getType(), dep)
)
)
}