Skip to content

Commit 2070daf

Browse files
committed
Java: add ForStmt wrapper class
1 parent c3bafc7 commit 2070daf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ private module Ast implements AstSig<Location> {
8484

8585
class DoStmt = J::DoStmt;
8686

87-
class ForStmt = J::ForStmt;
87+
final private class FinalForStmt = J::ForStmt;
88+
89+
class ForStmt extends FinalForStmt {
90+
AstNode getInit(int index) { result = super.getInit(index) }
91+
92+
AstNode getUpdate(int index) { result = super.getUpdate(index) }
93+
}
8894

8995
final private class FinalEnhancedForStmt = J::EnhancedForStmt;
9096

0 commit comments

Comments
 (0)