File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,10 @@ class LabeledStmt extends @labeledstmt, Stmt {
457
457
Stmt getStmt ( ) { result = getChildStmt ( 1 ) }
458
458
}
459
459
460
+ private class TJumpStmt = TBreakOrContinueStmt or @returnstmt or @throwstmt;
461
+
462
+ private class TBreakOrContinueStmt = @breakstmt or @continuestmt;
463
+
460
464
/**
461
465
* A statement that disrupts structured control flow, that is, a `continue` statement,
462
466
* a `break` statement, a `throw` statement, or a `return` statement.
@@ -470,7 +474,7 @@ class LabeledStmt extends @labeledstmt, Stmt {
470
474
* return -1;
471
475
* ```
472
476
*/
473
- abstract class JumpStmt extends Stmt {
477
+ class JumpStmt extends TJumpStmt , Stmt {
474
478
/**
475
479
* Gets the target of this jump.
476
480
*
@@ -497,7 +501,7 @@ abstract class JumpStmt extends Stmt {
497
501
* break;
498
502
* ```
499
503
*/
500
- abstract class BreakOrContinueStmt extends JumpStmt {
504
+ class BreakOrContinueStmt extends TBreakOrContinueStmt , JumpStmt {
501
505
/** Gets the label this statement refers to, if any. */
502
506
string getTargetLabel ( ) { result = getChildExpr ( 0 ) .( Identifier ) .getName ( ) }
503
507
You can’t perform that action at this time.
0 commit comments