Files
codeql/csharp/ql/test/library-tests/csharp8/switchstmtctrlflow.ql
2026-04-10 15:47:11 +02:00

11 lines
299 B
Plaintext

import csharp
query predicate edges(ControlFlowNode a, ControlFlowNode b, string label, string value) {
exists(ControlFlow::SuccessorType t |
a.getEnclosingCallable().hasName("SwitchStatements") and
b = a.getASuccessor(t) and
label = "semmle.label" and
value = t.toString()
)
}