mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
Basic extraction of record patterns
This commit is contained in:
@@ -82,7 +82,7 @@ predicate depends(RefType t, RefType dep) {
|
||||
or
|
||||
// the type accessed in a pattern-switch case statement in `t`.
|
||||
exists(PatternCase pc | t = pc.getEnclosingCallable().getDeclaringType() |
|
||||
usesType(pc.getDecl().getType(), dep)
|
||||
usesType(pc.getPattern().getType(), dep)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user