File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1776,16 +1776,25 @@ class ConditionNode extends ControlFlow::Node {
17761776 ExprParent getCondition ( ) { result = this .asExpr ( ) or result = this .asStmt ( ) }
17771777}
17781778
1779- private import codeql.controlflow .PrintGraph as PrintGraph
1779+ private import codeql.util .PrintGraph as PrintGraph
17801780
17811781private module PrintGraphInput implements PrintGraph:: InputSig< Location > {
17821782 private import java as J
17831783
17841784 class Callable = J:: Callable ;
17851785
1786- class ControlFlowNode = J:: ControlFlowNode ;
1786+ final private class FinalControlFlowNode = J:: ControlFlowNode ;
17871787
1788- ControlFlowNode getASuccessor ( ControlFlowNode n , SuccessorType t ) { result = n .getASuccessor ( t ) }
1788+ class Node extends FinalControlFlowNode {
1789+ string getOrderDisambiguation ( ) { result = "" }
1790+ }
1791+
1792+ predicate edge ( Node node1 , string s , Node node2 ) {
1793+ exists ( SuccessorType t |
1794+ node2 = node1 .getASuccessor ( t ) and
1795+ if t instanceof DirectSuccessor then s = "" else s = t .toString ( )
1796+ )
1797+ }
17891798}
17901799
17911800/** Provides utilities for visualising the CFG. */
You can’t perform that action at this time.
0 commit comments