Files
codeql/csharp/ql/test/library-tests/controlflow/graph/ElementGraph.ql
Tom Hvitved 0c1db6afc3 C#: Add more CFG tests
Added tests for exits inside `try` statements and constantly failing assertions.
2018-10-19 14:05:30 +02:00

11 lines
325 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()
)
}