@@ -643,17 +643,10 @@ module Trees {
643643
644644 final override predicate first ( AstNode first ) { first ( this .getCondition ( ) , first ) }
645645
646- private AstNode getConditionSucc ( ) {
647- result = this .getBody ( )
648- or
649- not exists ( this .getBody ( ) ) and
650- result = this .getCondition ( )
651- }
652-
653646 final override predicate succ ( AstNode pred , AstNode succ , Completion c ) {
654647 last ( this .getCondition ( ) , pred , c ) and
655648 this .entersLoopWhenConditionIs ( c .( BooleanCompletion ) .getValue ( ) ) and
656- first ( this .getConditionSucc ( ) , succ )
649+ first ( this .getBody ( ) , succ )
657650 or
658651 last ( this .getBody ( ) , pred , c ) and
659652 first ( this .getCondition ( ) , succ ) and
@@ -1117,21 +1110,6 @@ module Trees {
11171110 }
11181111 }
11191112
1120- private class TSimpleHiddenStmtSequenceTree =
1121- ASTInternal:: TElse or ASTInternal:: TThen or ASTInternal:: TDo ;
1122-
1123- private class SimpleHiddenStmtSequenceTree extends StmtSequenceTree , TSimpleHiddenStmtSequenceTree {
1124- final override predicate propagatesAbnormal ( AstNode child ) { child = this .getAStmt ( ) }
1125-
1126- final override predicate first ( AstNode first ) { first ( this .getStmt ( 0 ) , first ) }
1127-
1128- final override predicate last ( AstNode last , Completion c ) { last ( this .getLastStmt ( ) , last , c ) }
1129-
1130- final override predicate succ ( AstNode pred , AstNode succ , Completion c ) {
1131- StmtSequenceTree .super .succ ( pred , succ , c )
1132- }
1133- }
1134-
11351113 /**
11361114 * Control-flow tree for any pre-order StmtSequence that doesn't have a more
11371115 * specific implementation.
@@ -1144,8 +1122,7 @@ module Trees {
11441122 not this instanceof EndBlock and
11451123 not this instanceof StringInterpolationComponent and
11461124 not this instanceof Block and
1147- not this instanceof ParenthesizedExpr and
1148- not this instanceof TSimpleHiddenStmtSequenceTree
1125+ not this instanceof ParenthesizedExpr
11491126 }
11501127
11511128 final override predicate propagatesAbnormal ( AstNode child ) { child = this .getAStmt ( ) }
0 commit comments