Java: add ForStmt wrapper class

This commit is contained in:
Owen Mansel-Chan
2026-05-21 13:41:29 +01:00
parent c3bafc75ab
commit 2070dafeb2

View File

@@ -84,7 +84,13 @@ private module Ast implements AstSig<Location> {
class DoStmt = J::DoStmt;
class ForStmt = J::ForStmt;
final private class FinalForStmt = J::ForStmt;
class ForStmt extends FinalForStmt {
AstNode getInit(int index) { result = super.getInit(index) }
AstNode getUpdate(int index) { result = super.getUpdate(index) }
}
final private class FinalEnhancedForStmt = J::EnhancedForStmt;