@@ -65,7 +65,7 @@ class ControlFlowNode extends Locatable, ControlFlowNodeBase {
6565 * taken when this expression is true.
6666 */
6767 ControlFlowNode getATrueSuccessor ( ) {
68- truecond_base ( this , result ) and
68+ qlCFGTrueSuccessor ( this , result ) and
6969 result = getASuccessor ( )
7070 }
7171
@@ -74,7 +74,7 @@ class ControlFlowNode extends Locatable, ControlFlowNodeBase {
7474 * taken when this expression is false.
7575 */
7676 ControlFlowNode getAFalseSuccessor ( ) {
77- falsecond_base ( this , result ) and
77+ qlCFGFalseSuccessor ( this , result ) and
7878 result = getASuccessor ( )
7979 }
8080
@@ -95,18 +95,20 @@ import ControlFlowGraphPublic
9595class ControlFlowNodeBase extends ElementBase , @cfgnode { }
9696
9797/**
98+ * DEPRECATED: Use `ControlFlowNode.getATrueSuccessor()` instead.
9899 * Holds when `n2` is a control-flow node such that the control-flow
99100 * edge `(n1, n2)` may be taken when `n1` is an expression that is true.
100101 */
101- predicate truecond_base ( ControlFlowNodeBase n1 , ControlFlowNodeBase n2 ) {
102+ deprecated predicate truecond_base ( ControlFlowNodeBase n1 , ControlFlowNodeBase n2 ) {
102103 qlCFGTrueSuccessor ( n1 , n2 )
103104}
104105
105106/**
107+ * DEPRECATED: Use `ControlFlowNode.getAFalseSuccessor()` instead.
106108 * Holds when `n2` is a control-flow node such that the control-flow
107109 * edge `(n1, n2)` may be taken when `n1` is an expression that is false.
108110 */
109- predicate falsecond_base ( ControlFlowNodeBase n1 , ControlFlowNodeBase n2 ) {
111+ deprecated predicate falsecond_base ( ControlFlowNodeBase n1 , ControlFlowNodeBase n2 ) {
110112 qlCFGFalseSuccessor ( n1 , n2 )
111113}
112114
@@ -134,7 +136,7 @@ abstract class AdditionalControlFlowEdge extends ControlFlowNodeBase {
134136/**
135137 * Holds if there is a control-flow edge from `source` to `target` in either
136138 * the extractor-generated control-flow graph or in a subclass of
137- * `AdditionalControlFlowEdge`. Use this relation instead of `successors `.
139+ * `AdditionalControlFlowEdge`. Use this relation instead of `qlCFGSuccessor `.
138140 */
139141predicate successors_extended ( ControlFlowNodeBase source , ControlFlowNodeBase target ) {
140142 qlCFGSuccessor ( source , target )
0 commit comments