Cfg: Support short-circuiting compound assignments.

This commit is contained in:
Anders Schack-Mulligen
2026-03-03 11:12:15 +01:00
parent a53cffc121
commit 0b6c416fd4
2 changed files with 56 additions and 7 deletions

View File

@@ -185,6 +185,24 @@ private module Ast implements AstSig<Location> {
class LogicalNotExpr = LogNotExpr;
class Assignment = J::Assignment;
class AssignExpr = J::AssignExpr;
class CompoundAssignment = J::AssignOp;
class AssignLogicalAndExpr extends CompoundAssignment {
AssignLogicalAndExpr() { none() }
}
class AssignLogicalOrExpr extends CompoundAssignment {
AssignLogicalOrExpr() { none() }
}
class AssignNullCoalescingExpr extends CompoundAssignment {
AssignNullCoalescingExpr() { none() }
}
final private class FinalBooleanLiteral = J::BooleanLiteral;
class BooleanLiteral extends FinalBooleanLiteral {