mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
319 B
Plaintext
10 lines
319 B
Plaintext
import csharp
|
|
|
|
query predicate edges(ControlFlow::Node node1, ControlFlow::Node node2, string label, string value) {
|
|
label = "semmle.label" and
|
|
exists(ControlFlow::SuccessorType t |
|
|
node2 = node1.getASuccessorByType(t) and value = t.toString()
|
|
) and
|
|
node1.getEnclosingCallable().hasName("NullCoalescing")
|
|
}
|