Files
codeql/csharp/ql/test/library-tests/controlflow/graph/ElementGraph.ql
2018-12-20 10:19:59 +01:00

14 lines
331 B
Plaintext

import csharp
import Common
query predicate edges(
SourceControlFlowElement node, SourceControlFlowElement successor, string attr, string val
) {
exists(ControlFlow::SuccessorType t |
successor = node.getAControlFlowNode().getASuccessorByType(t).getElement()
|
attr = "semmle.label" and
val = t.toString()
)
}