Basic extraction of record patterns

This commit is contained in:
Chris Smowton
2023-11-01 16:05:53 +00:00
parent 293cc67494
commit daccd04087
10 changed files with 93 additions and 42 deletions

View File

@@ -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)
)
)
}