@@ -117,7 +117,7 @@ class IfStmt extends ConditionalStmt, @ifstmt {
117
117
* Gets the statement that is executed whenever the condition
118
118
* of this branch statement evaluates to `true`.
119
119
*/
120
- override Stmt getTrueSuccessor ( ) { result = getThen ( ) }
120
+ deprecated override Stmt getTrueSuccessor ( ) { result = getThen ( ) }
121
121
122
122
/** Gets the `else` branch of this `if` statement. */
123
123
Stmt getElse ( ) { result .isNthChildOf ( this , 2 ) }
@@ -168,7 +168,7 @@ class ForStmt extends ConditionalStmt, @forstmt {
168
168
* Gets the statement that is executed whenever the condition
169
169
* of this branch statement evaluates to true.
170
170
*/
171
- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
171
+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
172
172
173
173
/**
174
174
* Gets a variable that is used as an iteration variable: it is defined,
@@ -228,7 +228,7 @@ class WhileStmt extends ConditionalStmt, @whilestmt {
228
228
* Gets the statement that is executed whenever the condition
229
229
* of this branch statement evaluates to true.
230
230
*/
231
- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
231
+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
232
232
233
233
/** Gets a printable representation of this statement. May include more detail than `toString()`. */
234
234
override string pp ( ) { result = "while (...) " + this .getStmt ( ) .pp ( ) }
@@ -249,7 +249,7 @@ class DoStmt extends ConditionalStmt, @dostmt {
249
249
* Gets the statement that is executed whenever the condition
250
250
* of this branch statement evaluates to `true`.
251
251
*/
252
- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
252
+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
253
253
254
254
/** Gets a printable representation of this statement. May include more detail than `toString()`. */
255
255
override string pp ( ) { result = "do " + this .getStmt ( ) .pp ( ) + " while (...)" }
0 commit comments