mirror of
https://github.com/github/codeql.git
synced 2026-05-19 05:37:10 +02:00
12 lines
313 B
Plaintext
12 lines
313 B
Plaintext
import csharp
|
|
|
|
query predicate edges(ControlFlowNode n1, ControlFlowNode n2, string attr, string val) {
|
|
exists(SwitchStmt switch, ControlFlow::SuccessorType t |
|
|
switch.getControlFlowNode().getASuccessor*() = n1
|
|
|
|
|
n2 = n1.getASuccessor(t) and
|
|
attr = "semmle.label" and
|
|
val = t.toString()
|
|
)
|
|
}
|