@@ -117,7 +117,7 @@ class IfStmt extends ConditionalStmt, @ifstmt {
117117 * Gets the statement that is executed whenever the condition
118118 * of this branch statement evaluates to `true`.
119119 */
120- override Stmt getTrueSuccessor ( ) { result = getThen ( ) }
120+ deprecated override Stmt getTrueSuccessor ( ) { result = getThen ( ) }
121121
122122 /** Gets the `else` branch of this `if` statement. */
123123 Stmt getElse ( ) { result .isNthChildOf ( this , 2 ) }
@@ -168,7 +168,7 @@ class ForStmt extends ConditionalStmt, @forstmt {
168168 * Gets the statement that is executed whenever the condition
169169 * of this branch statement evaluates to true.
170170 */
171- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
171+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
172172
173173 /**
174174 * Gets a variable that is used as an iteration variable: it is defined,
@@ -228,7 +228,7 @@ class WhileStmt extends ConditionalStmt, @whilestmt {
228228 * Gets the statement that is executed whenever the condition
229229 * of this branch statement evaluates to true.
230230 */
231- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
231+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
232232
233233 /** Gets a printable representation of this statement. May include more detail than `toString()`. */
234234 override string pp ( ) { result = "while (...) " + this .getStmt ( ) .pp ( ) }
@@ -249,7 +249,7 @@ class DoStmt extends ConditionalStmt, @dostmt {
249249 * Gets the statement that is executed whenever the condition
250250 * of this branch statement evaluates to `true`.
251251 */
252- override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
252+ deprecated override Stmt getTrueSuccessor ( ) { result = getStmt ( ) }
253253
254254 /** Gets a printable representation of this statement. May include more detail than `toString()`. */
255255 override string pp ( ) { result = "do " + this .getStmt ( ) .pp ( ) + " while (...)" }
0 commit comments