mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
12 lines
324 B
Plaintext
12 lines
324 B
Plaintext
import csharp
|
|
|
|
query predicate edges(ControlFlow::Node n1, ControlFlow::Node n2, string attr, string val) {
|
|
exists(SwitchStmt switch, ControlFlow::SuccessorType t |
|
|
switch.getAControlFlowNode().getASuccessor*() = n1
|
|
|
|
|
n2 = n1.getASuccessorByType(t) and
|
|
attr = "semmle.label" and
|
|
val = t.toString()
|
|
)
|
|
}
|