mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Java: Add support for "View CFG".
This commit is contained in:
@@ -1775,3 +1775,17 @@ class ConditionNode extends ControlFlow::Node {
|
||||
/** Gets the condition of this `ConditionNode`. */
|
||||
ExprParent getCondition() { result = this.asExpr() or result = this.asStmt() }
|
||||
}
|
||||
|
||||
private import codeql.controlflow.PrintGraph as PrintGraph
|
||||
|
||||
private module PrintGraphInput implements PrintGraph::InputSig<Location> {
|
||||
private import java as J
|
||||
|
||||
class Callable = J::Callable;
|
||||
|
||||
class ControlFlowNode = J::ControlFlowNode;
|
||||
|
||||
ControlFlowNode getASuccessor(ControlFlowNode n, SuccessorType t) { result = n.getASuccessor(t) }
|
||||
}
|
||||
|
||||
import PrintGraph::PrintGraph<Location, PrintGraphInput>
|
||||
|
||||
Reference in New Issue
Block a user