mirror of
https://github.com/github/codeql.git
synced 2026-06-14 09:21:07 +02:00
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).
6 lines
114 B
Plaintext
6 lines
114 B
Plaintext
import java
|
|
|
|
from ControlFlowNode cn
|
|
where cn.getFile().getBaseName() = "Test.java"
|
|
select cn, cn.getASuccessor()
|