mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
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:
1
java/ql/test/library-tests/pattern-switch/cfg/options
Normal file
1
java/ql/test/library-tests/pattern-switch/cfg/options
Normal file
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args --release 21
|
||||
Reference in New Issue
Block a user