mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
16 lines
516 B
Plaintext
16 lines
516 B
Plaintext
import java
|
|
import utils.test.AstCfg
|
|
|
|
from ControlFlowNode n, ControlFlowNode m
|
|
where
|
|
m = getAnAstSuccessor(n) and
|
|
n.getLocation().getFile().(CompilationUnit).fromSource()
|
|
select n, n.getAstNode().getPrimaryQlClasses(), m, m.getAstNode().getPrimaryQlClasses()
|
|
|
|
query predicate missingSuccessor(Expr e) {
|
|
exists(ControlFlowNode n | n = e.getControlFlowNode() and not exists(n.getASuccessor())) and
|
|
e.getFile().(CompilationUnit).fromSource() and
|
|
not e instanceof TypeAccess and
|
|
not e instanceof VarWrite
|
|
}
|