@@ -147,7 +147,7 @@ signature module AstSig<LocationSig Location> {
147147 }
148148
149149 /** A for-loop that iterates over the elements of a collection. */
150- class ForeachStmt extends LoopStmt {
150+ class ForEachStmt extends LoopStmt {
151151 /** Gets the variable declaration of this `foreach` loop. */
152152 Expr getVariable ( ) ;
153153
@@ -650,7 +650,7 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
650650 any ( Case case ) .getGuard ( ) = n
651651 )
652652 or
653- any ( ForeachStmt foreachstmt ) .getCollection ( ) = n and kind .isEmptiness ( )
653+ any ( ForEachStmt foreachstmt ) .getCollection ( ) = n and kind .isEmptiness ( )
654654 or
655655 kind .isMatching ( ) and
656656 (
@@ -1656,7 +1656,7 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
16561656 n2 .isAfter ( loopstmt )
16571657 )
16581658 or
1659- exists ( ForeachStmt foreachstmt |
1659+ exists ( ForEachStmt foreachstmt |
16601660 n1 .isBefore ( foreachstmt ) and
16611661 n2 .isBefore ( foreachstmt .getCollection ( ) )
16621662 or
@@ -2401,7 +2401,7 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
24012401 // allow for loop headers in foreach loops (they're checking emptiness on the iterator, not the collection)
24022402 not (
24032403 t instanceof DirectSuccessor and
2404- node .isAdditional ( any ( ForeachStmt foreach ) , loopHeaderTag ( ) )
2404+ node .isAdditional ( any ( ForEachStmt foreach ) , loopHeaderTag ( ) )
24052405 ) and
24062406 // allow for functions with multiple bodies
24072407 not exists ( Callable c |
0 commit comments