mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
Implement multiple pattern case and fall-through pattern case support
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user