mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
16 lines
512 B
Plaintext
16 lines
512 B
Plaintext
import csharp
|
|
|
|
ControlFlow::Node successor(ControlFlow::Node node, boolean kind) {
|
|
kind = true and result = node.getATrueSuccessor()
|
|
or
|
|
kind = false and result = node.getAFalseSuccessor()
|
|
}
|
|
|
|
from ControlFlow::Node node, ControlFlow::Node successor, Location nl, Location sl, boolean kind
|
|
where
|
|
successor = successor(node, kind) and
|
|
nl = node.getLocation() and
|
|
sl = successor.getLocation()
|
|
select nl.getStartLine(), nl.getStartColumn(), node, kind, sl.getStartLine(), sl.getStartColumn(),
|
|
successor
|