Add pattern-case support and generally debug switch CFGs

These were reasonably broken beforehand, due to not taking switch rules into account in enough places, and confusing the expression/statement switch rule distinction with the distinction between switch statements and expressions.

(For example, `switch(x) { 1 -> System.out.println("Hello world") ... }` is a statement, but has a rule expression).
This commit is contained in:
Chris Smowton
2023-10-24 15:13:10 +01:00
parent f4b45fa511
commit 6c990c2cf6
7 changed files with 177 additions and 22 deletions

View File

@@ -0,0 +1 @@
//semmle-extractor-options: --javac-args --release 21