Files
codeql/csharp/ql/test/library-tests/csharp8/ispatternflow.ql
2019-05-24 13:49:05 +01:00

11 lines
306 B
Plaintext

import csharp
query predicate edges(ControlFlow::Node a, ControlFlow::Node b, string label, string value) {
exists(ControlFlow::SuccessorType t |
a.getEnclosingCallable().getName() = "IsPatterns" and
b = a.getASuccessorByType(t) and
label = "semmle.label" and
value = t.toString()
)
}