mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
12 lines
364 B
Plaintext
12 lines
364 B
Plaintext
import csharp
|
|
import semmle.code.csharp.controlflow.ControlFlowGraph
|
|
|
|
query predicate edges(ControlFlowNode n1, ControlFlowNode n2, string attr, string val) {
|
|
exists(SwitchStmt switch, ControlFlowEdgeType t |
|
|
switch.getAControlFlowNode().getASuccessor*()=n1 |
|
|
n2 = n1.getASuccessorByType(t) and
|
|
attr = "semmle.label" and
|
|
val = t.toString()
|
|
)
|
|
}
|